The SubmitButton widget prevents a form from being submit while there is invalid content in any of the contained Dojo validation widgets:

<dsp:input id="updateUserInfo" type="Submit" value="Submit"
 bean="/atg/web/messaging/test/UserInfoFormHandler.updateUserInfo">
  <dsp:tagAttribute name="dojoType" value="validation:SubmitButton"/>
</dsp:input>

When present in a form, the SubmitButton widget will automatically enable and disable to prevent form submission while there are invalid contents in any of the Dojo validation widgets contained in the form. One or more SubmitButton widgets may be used in the same form. If the SubmitButton must be placed outside of the form that it validates, use the form attribute of the SubmitButton to specify the form to validate.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices