Note |
---|
Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works. |
Wiki Markup |
---|
{snippet:id=javadoc|javadoc=true|url=comorg.opensymphonyapache.webworkstruts2.components.Form} |
Parameters
Wiki Markup |
---|
{snippet:id=tagattributes|javadoc=false|url=webwork/docs/struts2-tags/Formform.html} |
Examples
Wiki Markup |
---|
{snippet:id=example|lang=xml|javadoc=true|url=comorg.opensymphonyapache.webworkstruts2.components.Form} |
Validation
There are two flavours of validation
1. Normal request/response process - please see Validation.
1. AJAX-based validation, which is performed when the user moves between fields - please see Remote Form Validation
Asynchronous Form Processing (AJAX)
To ajax enable the form, the form tag must be used specifying a theme="ajax". Additionally, the submit tag must be used to provide the button that will submit the formClient Side Validation, depending on the theme you are using (xhtml, ajax, etc). If you are using the xhtml theme or css_xhtml theme, pure client side validation will be used. If you are using the ajax theme, a special AJAX-based validation will take place. Read the Client Side Validation docs for more information.