[seam-commits] Seam SVN: r12023 - in branches/community/Seam_2_2: examples/hibernate/resources-jboss/WEB-INF and 5 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Feb 9 09:39:54 EST 2010


Author: jharting
Date: 2010-02-09 09:39:52 -0500 (Tue, 09 Feb 2010)
New Revision: 12023

Modified:
   branches/community/Seam_2_2/examples/hibernate/resources-glassfish/WEB-INF/pages.xml
   branches/community/Seam_2_2/examples/hibernate/resources-jboss/WEB-INF/pages.xml
   branches/community/Seam_2_2/examples/hibernate/resources-tomcat/WEB-INF/pages.xml
   branches/community/Seam_2_2/examples/hibernate/resources-weblogic92/WEB-INF/pages.xml
   branches/community/Seam_2_2/examples/hibernate/resources-websphere61/WEB-INF/pages.xml
   branches/community/Seam_2_2/examples/hibernate/view/home.xhtml
   branches/community/Seam_2_2/src/test/ftest/examples/hibernate/src/org/jboss/seam/example/hibernate/test/selenium/hibernate.properties
Log:
JBSEAM-4533 Hibernate example

Modified: branches/community/Seam_2_2/examples/hibernate/resources-glassfish/WEB-INF/pages.xml
===================================================================
--- branches/community/Seam_2_2/examples/hibernate/resources-glassfish/WEB-INF/pages.xml	2010-02-09 14:33:34 UTC (rev 12022)
+++ branches/community/Seam_2_2/examples/hibernate/resources-glassfish/WEB-INF/pages.xml	2010-02-09 14:39:52 UTC (rev 12023)
@@ -8,8 +8,7 @@
 
     <page view-id="/register.xhtml">
     
-        <action if="#{validation.failed}"
-           execute="#{register.invalid}"/>
+        <action if="#{validation.failed}" execute="#{register.invalid}"/>
     
         <navigation>
             <rule if="#{register.registered}">
@@ -21,17 +20,14 @@
 
     <page view-id="/home.xhtml" action="#{identity.isLoggedIn}">
 
-        <navigation from-action="#{identity.isLoggedIn}">
-            <rule if-outcome="true">
-                <redirect view-id="/main.xhtml"/>
-            </rule>
-        </navigation>
-    
-        <navigation>
-            <rule if="#{identity.loggedIn}">
-                <redirect view-id="/main.xhtml"/>
-            </rule>
-        </navigation>
+        <navigation from-action="#{identity.isLoggedIn}"> 
+      		<rule if-outcome="true"> 
+         		<redirect view-id="/main.xhtml"/> 
+      		</rule> 
+      		<rule if-outcome="false"> 
+         		<render view-id="/home.xhtml"/> 
+      		</rule> 
+	</navigation>
         
     </page>
     

Modified: branches/community/Seam_2_2/examples/hibernate/resources-jboss/WEB-INF/pages.xml
===================================================================
--- branches/community/Seam_2_2/examples/hibernate/resources-jboss/WEB-INF/pages.xml	2010-02-09 14:33:34 UTC (rev 12022)
+++ branches/community/Seam_2_2/examples/hibernate/resources-jboss/WEB-INF/pages.xml	2010-02-09 14:39:52 UTC (rev 12023)
@@ -8,8 +8,7 @@
 
     <page view-id="/register.xhtml">
     
-        <action if="#{validation.failed}"
-           execute="#{register.invalid}"/>
+        <action if="#{validation.failed}" execute="#{register.invalid}"/>
     
         <navigation>
             <rule if="#{register.registered}">
@@ -21,17 +20,14 @@
 
     <page view-id="/home.xhtml" action="#{identity.isLoggedIn}">
 
-        <navigation from-action="#{identity.isLoggedIn}">
-            <rule if-outcome="true">
-                <redirect view-id="/main.xhtml"/>
-            </rule>
-        </navigation>
-    
-        <navigation>
-            <rule if="#{identity.loggedIn}">
-                <redirect view-id="/main.xhtml"/>
-            </rule>
-        </navigation>
+        <navigation from-action="#{identity.isLoggedIn}"> 
+      		<rule if-outcome="true"> 
+         		<redirect view-id="/main.xhtml"/> 
+      		</rule> 
+      		<rule if-outcome="false"> 
+         		<render view-id="/home.xhtml"/> 
+      		</rule> 
+	</navigation>
         
     </page>
     

Modified: branches/community/Seam_2_2/examples/hibernate/resources-tomcat/WEB-INF/pages.xml
===================================================================
--- branches/community/Seam_2_2/examples/hibernate/resources-tomcat/WEB-INF/pages.xml	2010-02-09 14:33:34 UTC (rev 12022)
+++ branches/community/Seam_2_2/examples/hibernate/resources-tomcat/WEB-INF/pages.xml	2010-02-09 14:39:52 UTC (rev 12023)
@@ -8,8 +8,7 @@
 
     <page view-id="/register.xhtml">
     
-        <action if="#{validation.failed}"
-           execute="#{register.invalid}"/>
+        <action if="#{validation.failed}" execute="#{register.invalid}"/>
     
         <navigation>
             <rule if="#{register.registered}">
@@ -21,17 +20,14 @@
 
     <page view-id="/home.xhtml" action="#{identity.isLoggedIn}">
 
-        <navigation from-action="#{identity.isLoggedIn}">
-            <rule if-outcome="true">
-                <redirect view-id="/main.xhtml"/>
-            </rule>
-        </navigation>
-    
-        <navigation>
-            <rule if="#{identity.loggedIn}">
-                <redirect view-id="/main.xhtml"/>
-            </rule>
-        </navigation>
+        <navigation from-action="#{identity.isLoggedIn}"> 
+      		<rule if-outcome="true"> 
+         		<redirect view-id="/main.xhtml"/> 
+      		</rule> 
+      		<rule if-outcome="false"> 
+         		<render view-id="/home.xhtml"/> 
+      		</rule> 
+	</navigation>
         
     </page>
     

Modified: branches/community/Seam_2_2/examples/hibernate/resources-weblogic92/WEB-INF/pages.xml
===================================================================
--- branches/community/Seam_2_2/examples/hibernate/resources-weblogic92/WEB-INF/pages.xml	2010-02-09 14:33:34 UTC (rev 12022)
+++ branches/community/Seam_2_2/examples/hibernate/resources-weblogic92/WEB-INF/pages.xml	2010-02-09 14:39:52 UTC (rev 12023)
@@ -8,8 +8,7 @@
 
     <page view-id="/register.xhtml">
     
-        <action if="#{validation.failed}"
-           execute="#{register.invalid}"/>
+        <action if="#{validation.failed}" execute="#{register.invalid}"/>
     
         <navigation>
             <rule if="#{register.registered}">
@@ -21,17 +20,14 @@
 
     <page view-id="/home.xhtml" action="#{identity.isLoggedIn}">
 
-        <navigation from-action="#{identity.isLoggedIn}">
-            <rule if-outcome="true">
-                <redirect view-id="/main.xhtml"/>
-            </rule>
-        </navigation>
-    
-        <navigation>
-            <rule if="#{identity.loggedIn}">
-                <redirect view-id="/main.xhtml"/>
-            </rule>
-        </navigation>
+        <navigation from-action="#{identity.isLoggedIn}"> 
+      		<rule if-outcome="true"> 
+         		<redirect view-id="/main.xhtml"/> 
+      		</rule> 
+      		<rule if-outcome="false"> 
+         		<render view-id="/home.xhtml"/> 
+      		</rule> 
+	</navigation>
         
     </page>
     

Modified: branches/community/Seam_2_2/examples/hibernate/resources-websphere61/WEB-INF/pages.xml
===================================================================
--- branches/community/Seam_2_2/examples/hibernate/resources-websphere61/WEB-INF/pages.xml	2010-02-09 14:33:34 UTC (rev 12022)
+++ branches/community/Seam_2_2/examples/hibernate/resources-websphere61/WEB-INF/pages.xml	2010-02-09 14:39:52 UTC (rev 12023)
@@ -8,8 +8,7 @@
 
     <page view-id="/register.xhtml">
     
-        <action if="#{validation.failed}"
-           execute="#{register.invalid}"/>
+        <action if="#{validation.failed}" execute="#{register.invalid}"/>
     
         <navigation>
             <rule if="#{register.registered}">
@@ -21,17 +20,14 @@
 
     <page view-id="/home.xhtml" action="#{identity.isLoggedIn}">
 
-        <navigation from-action="#{identity.isLoggedIn}">
-            <rule if-outcome="true">
-                <redirect view-id="/main.xhtml"/>
-            </rule>
-        </navigation>
-    
-        <navigation>
-            <rule if="#{identity.loggedIn}">
-                <redirect view-id="/main.xhtml"/>
-            </rule>
-        </navigation>
+        <navigation from-action="#{identity.isLoggedIn}"> 
+      		<rule if-outcome="true"> 
+         		<redirect view-id="/main.xhtml"/> 
+      		</rule> 
+      		<rule if-outcome="false"> 
+         		<render view-id="/home.xhtml"/> 
+      		</rule> 
+	</navigation>
         
     </page>
     

Modified: branches/community/Seam_2_2/examples/hibernate/view/home.xhtml
===================================================================
--- branches/community/Seam_2_2/examples/hibernate/view/home.xhtml	2010-02-09 14:33:34 UTC (rev 12022)
+++ branches/community/Seam_2_2/examples/hibernate/view/home.xhtml	2010-02-09 14:39:52 UTC (rev 12023)
@@ -29,7 +29,7 @@
 					<h:inputSecret id="password" value="#{identity.password}" style="width: 175px;"/>
 				</div>
 				<div class="errors"><h:messages globalOnly="true"/></div>
-				<div class="buttonBox"><h:commandButton id="login" action="#{identity.login}" value="Account Login"/></div>
+				<div class="buttonBox"><h:commandButton id="login" action="#{identity.quietLogin}" value="Account Login"/></div>
 				<div class="notes"><s:link id="register" view="/register.xhtml" value="Register New User"/></div>
                 <div class="subnotes">
                     Or use a demo account:

Modified: branches/community/Seam_2_2/src/test/ftest/examples/hibernate/src/org/jboss/seam/example/hibernate/test/selenium/hibernate.properties
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/hibernate/src/org/jboss/seam/example/hibernate/test/selenium/hibernate.properties	2010-02-09 14:33:34 UTC (rev 12022)
+++ branches/community/Seam_2_2/src/test/ftest/examples/hibernate/src/org/jboss/seam/example/hibernate/test/selenium/hibernate.properties	2010-02-09 14:39:52 UTC (rev 12023)
@@ -28,7 +28,7 @@
 LOGOUT id=logout
 PASSWORD_UPDATED_MESSAGE Password updated
 PASSWORD_REENTER_MESSAGE verify
-PASSWORD_VALUE_REQUIRED_MESSAGE //*[@id='setpassword:Message']
+PASSWORD_VALUE_REQUIRED_MESSAGE //*[@id='setpassword:Message' or @id='setpassword:PasswordDecorate:Message']
 PASSWORD_LENGTH_MESSAGE length must be between
 PASSWORD_PASSWORD id=setpassword:PasswordDecorate:password
 PASSWORD_VERIFY id=setpassword:VerifyDecorate:verify
@@ -44,9 +44,9 @@
 HOTEL_BED_FIELD id=booking:bedsDecorate:beds
 HOTEL_BED_FIELD_SELECT_CRITERIA value=
 HOTEL_CHECKIN_DATE_FIELD id=booking:checkinDateDecorate:checkinDateInputDate
-HOTEL_CHECKIN_DATE_MESSAGE id=booking:Message
+HOTEL_CHECKIN_DATE_MESSAGE xpath=//*[@id='booking:Message' or @id='booking:checkinDateDecorate:Message']
 HOTEL_CHECKOUT_DATE_FIELD id=booking:checkoutDateDecorate:checkoutDateInputDate
-HOTEL_CHECKOUT_DATE_MESSAGE id=booking:Message
+HOTEL_CHECKOUT_DATE_MESSAGE xpath=//*[@id='booking:Message' or @id='booking:checkoutDateDecorate:Message']
 HOTEL_SMOKING_1 id=booking:smokingDecorate:smoking:0
 HOTEL_SMOKING_2 id=booking:smokingDecorate:smoking:1
 HOTEL_CREDIT_CARD id=booking:creditCardDecorate:creditCard



More information about the seam-commits mailing list