openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r758935 - in /incubator/openwebbeans/trunk/samples/guess/src/main: java/org/apache/webbeans/sample/conversation/ShoppingCardBean.java webapp/conversation.xhtml
Date Fri, 27 Mar 2009 00:02:04 GMT
Author: gerdogdu
Date: Fri Mar 27 00:02:03 2009
New Revision: 758935

URL: http://svn.apache.org/viewvc?rev=758935&view=rev
Log:
clear codes.

Modified:
    incubator/openwebbeans/trunk/samples/guess/src/main/java/org/apache/webbeans/sample/conversation/ShoppingCardBean.java
    incubator/openwebbeans/trunk/samples/guess/src/main/webapp/conversation.xhtml

Modified: incubator/openwebbeans/trunk/samples/guess/src/main/java/org/apache/webbeans/sample/conversation/ShoppingCardBean.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/guess/src/main/java/org/apache/webbeans/sample/conversation/ShoppingCardBean.java?rev=758935&r1=758934&r2=758935&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/samples/guess/src/main/java/org/apache/webbeans/sample/conversation/ShoppingCardBean.java
(original)
+++ incubator/openwebbeans/trunk/samples/guess/src/main/java/org/apache/webbeans/sample/conversation/ShoppingCardBean.java
Fri Mar 27 00:02:03 2009
@@ -30,6 +30,8 @@
 @Named
 public class ShoppingCardBean implements Serializable
 {
+    private static final long serialVersionUID = 7914095399647910625L;
+
     private @Current Conversation conversation;
     
     private @Current ConversationModel model;
@@ -56,7 +58,7 @@
             buffer.append("," + b);
         }
         
-        JSFUtil.addInfoMessage("Your shopping card contents : " + buffer.toString() + "]");
+        JSFUtil.addInfoMessage(buffer.toString() + "]");
         
         return null;
     }

Modified: incubator/openwebbeans/trunk/samples/guess/src/main/webapp/conversation.xhtml
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/guess/src/main/webapp/conversation.xhtml?rev=758935&r1=758934&r2=758935&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/samples/guess/src/main/webapp/conversation.xhtml (original)
+++ incubator/openwebbeans/trunk/samples/guess/src/main/webapp/conversation.xhtml Fri Mar
27 00:02:03 2009
@@ -31,24 +31,19 @@
 		<h:messages globalOnly="false" showSummary="true" infoStyle="font-weight:bold;"></h:messages>
 		
 		<h:form id="form">
-			
-			<div align="center">
-				<h3>OpenWebBeans Conversation Example</h3>
-				<span style="color:red;">User name : admin, Password : admin</span>
-			</div>
-			
-			<div align="center" style="border:1px solid black;">
+						
+			<div style="border:1px solid black;margin: 25px 75px;">
 			
 				<h:panelGrid columns="2">
 					
 					<h:outputLabel for="book">
 						<h:outputText value="Book Name : "></h:outputText>
 					</h:outputLabel>
-					<h:inputText id="book" value="#{shoppingCardBean.book}"></h:inputText>
+					<h:inputText id="book" value="#{shoppingCardBean.book}" required="true" requiredMessage="Please
give a book name!"></h:inputText>
 					
 					<h:panelGroup>					
-						<h:commandButton action="#{shoppingCardBean.startConversation}" value="Start Conversation"></h:commandButton>
-						<h:commandButton action="#{shoppingCardBean.endConversation}" value="End Conversation"></h:commandButton>
+						<h:commandButton action="#{shoppingCardBean.startConversation}" immediate="true"
value="Start Conversation"></h:commandButton>
+						<h:commandButton action="#{shoppingCardBean.endConversation}" immediate="true" value="End
Conversation"></h:commandButton>
 					</h:panelGroup>
 					
 					<h:commandButton action="#{shoppingCardBean.addNewBook}" value="Add New Book"></h:commandButton>



Mime
View raw message