Author: dan.j.allen
Date: 2010-06-17 19:11:52 -0400 (Thu, 17 Jun 2010)
New Revision: 13232
Modified:
examples/trunk/booking-simplified/src/main/webapp/register.xhtml
Log:
add ajax to command button
Modified: examples/trunk/booking-simplified/src/main/webapp/register.xhtml
===================================================================
--- examples/trunk/booking-simplified/src/main/webapp/register.xhtml 2010-06-17 23:07:42
UTC (rev 13231)
+++ examples/trunk/booking-simplified/src/main/webapp/register.xhtml 2010-06-17 23:11:52
UTC (rev 13232)
@@ -30,8 +30,6 @@
<h:form id="registrationForm" prependId="false">
<fieldset>
- <h:outputScript name="jsf.js" library="javax.faces"
target="head"/>
-
<!-- manually append Ajax behavior -->
<p:input id="username">
<h:inputText id="input"
value="#{newUser.username}"
@@ -69,7 +67,9 @@
</p:input>--></ui:remove>
<div class="buttonBox">
- <h:commandButton id="register" value="Register"
action="#{registrar.register}"/>
+ <h:commandButton id="register" value="Register"
action="#{registrar.register}">
+ <f:ajax execute="@form"/>
+ </h:commandButton>
#{' '}
<h:button id="cancel" value="Cancel"
outcome="/home.xhtml"/>
</div>
Show replies by date