[seam-commits] Seam SVN: r10316 - trunk/examples/seambay/view.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Apr 6 17:54:33 EDT 2009
Author: shane.bryzak at jboss.com
Date: 2009-04-06 17:54:33 -0400 (Mon, 06 Apr 2009)
New Revision: 10316
Modified:
trunk/examples/seambay/view/register.xhtml
Log:
JBSEAM-3893
Modified: trunk/examples/seambay/view/register.xhtml
===================================================================
--- trunk/examples/seambay/view/register.xhtml 2009-04-06 21:44:47 UTC (rev 10315)
+++ trunk/examples/seambay/view/register.xhtml 2009-04-06 21:54:33 UTC (rev 10316)
@@ -43,30 +43,32 @@
</div>
<h:form id="registration">
- <p>
- <b>seamBay User ID</b><br/>
- <h:inputText id="username" value="#{newuser.username}"/>
- <div class="validationError"><h:message id="usernameMessage" for="username"/></div>
- </p>
-
- <p>
- <b>Password</b><br/>
- <h:inputSecret id="password" value="#{newuser.password}"/>
- <div class="validationError"><h:message id="passwordMessage" for="password"/></div>
- </p>
-
- <p>
- <b>Confirm Password</b><br/>
- <h:inputSecret id="confirm" value="#{registerAction.confirm}"/>
- <div class="validationError"><h:message id="confirmMessage" for="confirm"/></div>
- </p>
-
- <p>
- <b>Location</b><br/>
- <h:inputText id="location" class="location" value="#{newuser.account.location}"/>
- <div class="validationError"><h:message id="locationMessage" for="location"/></div>
- </p>
-
+ <s:validateAll>
+ <p>
+ <b>seamBay User ID</b><br/>
+ <h:inputText id="username" value="#{newuser.username}" required="true"/>
+ <div class="validationError"><h:message id="usernameMessage" for="username"/></div>
+ </p>
+
+ <p>
+ <b>Password</b><br/>
+ <h:inputSecret id="password" value="#{newuser.password}" required="true"/>
+ <div class="validationError"><h:message id="passwordMessage" for="password"/></div>
+ </p>
+
+ <p>
+ <b>Confirm Password</b><br/>
+ <h:inputSecret id="confirm" value="#{registerAction.confirm}" required="true"/>
+ <div class="validationError"><h:message id="confirmMessage" for="confirm"/></div>
+ </p>
+
+ <p>
+ <b>Location</b><br/>
+ <h:inputText id="location" class="location" value="#{newuser.account.location}" required="true"/>
+ <div class="validationError"><h:message id="locationMessage" for="location"/></div>
+ </p>
+ </s:validateAll>
+
<h:commandButton id="submit" value="Register >" action="#{registerAction.register}"/>
</h:form>
More information about the seam-commits
mailing list