[seam-commits] Seam SVN: r12030 - in branches/community/Seam_2_2: src/test/ftest/examples/seambay and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Feb 10 10:58:36 EST 2010


Author: jharting
Date: 2010-02-10 10:58:36 -0500 (Wed, 10 Feb 2010)
New Revision: 12030

Modified:
   branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/RegisterAction.java
   branches/community/Seam_2_2/src/test/ftest/examples/seambay/build.xml
Log:
JBSEAM-4533 Seambay example

Modified: branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/RegisterAction.java
===================================================================
--- branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/RegisterAction.java	2010-02-09 23:40:44 UTC (rev 12029)
+++ branches/community/Seam_2_2/examples/seambay/src/org/jboss/seam/example/seambay/RegisterAction.java	2010-02-10 15:58:36 UTC (rev 12030)
@@ -48,7 +48,7 @@
       if (confirm == null || !confirm.equals(newuser.getPassword()))
       {
          FacesMessages.instance().addToControl("confirm", "Passwords do not match");
-         return "failed";
+         return null;
       }
       
       if (entityManager.createQuery("from User where username = :username")
@@ -57,7 +57,7 @@
       {
          FacesMessages.instance().addToControl("username", 
                "That user ID is already taken, please choose a different one");
-         return "failed"; 
+         return null; 
       }
       
       newuser.getAccount().setFeedbackPercent(0);
@@ -82,7 +82,7 @@
       {
          FacesMessages.instance().addToControl("username", 
                "That user ID is already taken, please choose a different one");
-         return "failed";  
+         return null;  
       }
    }
    

Modified: branches/community/Seam_2_2/src/test/ftest/examples/seambay/build.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/seambay/build.xml	2010-02-09 23:40:44 UTC (rev 12029)
+++ branches/community/Seam_2_2/src/test/ftest/examples/seambay/build.xml	2010-02-10 15:58:36 UTC (rev 12030)
@@ -25,6 +25,7 @@
 	<property name="jboss4.context.path" value="/seam-bay" />
 	<property name="jboss-embedded.context.path" value="/jboss-seam-bay" />
 	<property name="tomcat6.context.path" value="/jboss-seam-bay" />
+	<property name="example.homepage" value="/home.seam" />
 
 	<import file="../build.xml" />
 </project>



More information about the seam-commits mailing list