form
HTML form tag. This tag includes a target action and event that are not only used to generate the target URL but also dictates the validations that will be applied to the input fields.
| Tag Information | |
|---|---|
| Tag Class | org.loom.tags.core.FormTag |
| Body Content | scriptless |
| Dynamic Attributes | true |
| Example | <l:form action="Mortgages" event="save">
<l:inputHidden name="mortgage.id"/>
<l:inputText name="mortgage.name"/>
<l:inputCheckbox name="mortgage.starred"/>
<l:inputSelect name="mortgage.country" options="${action.countries}" />
<l:inputFile name="mortgage.photo"/>
</l:form> |
Attributes
| Name | Description | Flags |
|---|---|---|
| accept | HTML attribute |
rtexprvalue
|
| acceptCharset | HTML attribute |
rtexprvalue
|
| accesskey | HTML attribute |
rtexprvalue
|
| action | An Action instance or Class to get called when this form gets submitted. |
rtexprvalue
|
| autocomplete | The non-standard attribute to enable/disable browser autocomplete for any field (Firefox and IE). This will be the default value for any field inside this form. Default is null. |
rtexprvalue
|
| class | HTML attribute |
rtexprvalue
|
| decorator | The name of the decorator to use. The default decorators for any form field will display the surrounding label. |
rtexprvalue
|
| dir | HTML attribute |
rtexprvalue
|
| disabled | true to disable the whole form, default false |
rtexprvalue
|
| enctype | HTML attribute |
rtexprvalue
|
| event | The event that will be invoked when this form is submitted |
rtexprvalue
|
| hash | The hash of the url (the fragment after '#') |
rtexprvalue
|
| hostname | The server name to use. If not specified, the current request.getServerName() value will be used. |
rtexprvalue
|
| id | HTML attribute |
rtexprvalue
|
| if | Set to false to skip tag execution. |
rtexprvalue
|
| lang | HTML attribute |
rtexprvalue
|
| mapping | The mapping as action.event. This method is equivalent to
setting action and event separately.
|
rtexprvalue
|
| method | HTML attribute. The default is the first method assigned to the target event. |
rtexprvalue
|
| name | HTML attribute with different meanings: |
rtexprvalue
|
| port | The port to use. If not specified, the current request port will be used. |
rtexprvalue
|
| relative | true if the url is relative (do not render schema, server or port), false to render a full URL. Default is true |
rtexprvalue
|
| renderAsText | set to true to render any nested field as text |
rtexprvalue
|
| renderLabel | true to render field labels by default, default true |
rtexprvalue
|
| scheme | The scheme to use. If not specified, the current request scheme will be used. |
rtexprvalue
|
| separateErrors | true to render field errors by default, default true |
rtexprvalue
|
| style | HTML attribute |
rtexprvalue
|
| target | HTML attribute |
rtexprvalue
|
| title | HTML attribute |
rtexprvalue
|
| translateTitle | set to true to translate title, default true |
rtexprvalue
|