Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Shale Wiki" for change 
notification.

The following page has been changed by ReneZanner:
http://wiki.apache.org/shale/ShaleValidation

------------------------------------------------------------------------------
    </h:form>
  }}}
  
- '''ATTENTION:''' There is an issue with client-side validation when using a 
commandButton with immediate="true" for wizard-style "back" navigation. You 
have to remove the "onsubmit" handler from the form and attach it to the normal 
"next" commandButton ("onclick" handler) instead. Otherwise the client-side 
validation will be executed in the "back" navigation case, too (which is not 
wanted in most cases).
+ '''ATTENTION:''' There is an issue with client-side validation in conjunction 
with using a commandButton for wizard-style "back" navigation. You have to 
remove the "onsubmit" handler from the form and attach it to the normal "next" 
commandButton ("onclick" handler) instead. Otherwise the client-side validation 
will be executed in the "back" navigation case, too (which is not wanted in 
most cases).
  
  {{{
    <h:form>
       ...
+      <!-- immediate="true" skips server-side validation -->
       <h:commandButton action="back" immediate="true" ... />
       <h:commandButton action="#{wizard.gotoPage2}" onclick="return 
validateForm(this.form);" ... />
       <s:validatorScript functionName="validateForm"/>

Reply via email to