Description
Wiki Markup |
---|
{snippet:id=javadoc|javadoc=true|url=com.opensymphony.webwork.components.Form} |
Parameters
Wiki Markup |
---|
{snippet:id=tagattributes|javadoc=false|url=webwork/docs/tags/Form.html} |
Examples
Wiki Markup |
---|
{snippet:id=example|lang=xml|javadoc=true|url=com.opensymphony.webwork.components.Form} |
Talk generally about the form, behaviors, etc. Mention theme-specific notes as well.
Attribute | Type | Required | Default | Theme | Description |
---|---|---|---|---|---|
action | String | Yes | N/A | simple | ... |
namespace | String | No | The current namespace | simple | ... |
validate | boolean | No | false | xhtml | ... |
form
Attribute | Type | Required | Default | Description |
---|---|---|---|---|
id | string | FALSE | action attribute |
|
name | string | FALSE | action attribute |
|
action | string | FALSE |
|
|
target | string | FALSE |
|
|
enctype | string | FALSE |
|
|
method | string | FALSE |
|
|
namespace | string | FALSE | global namespace: """ |
|
onsubmit | string | FALSE |
|
|
validate | boolean | FALSE |
|
|
name | string | TRUE |
|
|
value | string | FALSE |
|
|
required | boolean | FALSE |
|
|
disabled | boolean | FALSE |
|
|
theme | string | FALSE |
|
|
template | string | FALSE |
|
|
cssClass | string | FALSE |
|
|
cssStyle | string | FALSE |
|
|
label | string | FALSE |
|
|
labelposition | string | FALSE |
|
|
tabindex | string | FALSE |
|
|
onclick | string | FALSE |
|
|
ondblclick | string | FALSE |
|
|
onmousedown | string | FALSE |
|
|
onmouseup | string | FALSE |
|
|
onmouseover | string | FALSE |
|
|
onmousemove | string | FALSE |
|
|
onmouseout | string | FALSE |
|
|
onfocus | string | FALSE |
|
|
onblur | string | FALSE |
|
|
onkeypress | string | FALSE |
|
|
onkeydown | string | FALSE |
|
|
onselect | string | FALSE |
|
|
onchange | string | FALSE |
|
|
...
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 form.