tags: select - radio - radios - checkboxes - option - options - optionsCollection - optionsDependent
Render a select box. Main difference with <html:select> tag:
| Attribute Name | Description |
|---|---|
| arg0, arg1, arg2, arg3, arg4, key, locale, name, styleClass,property, multiple, size, value | as in <html:select> and <bean:message> |
| filter | filter sensitive html characters. Works with data coming from all options tag |
| onchange | onchange javascript handler [EL] |
Render a radio button. Main difference with <html:radio> tag:
Render a list of radio buttons. This tag is used as the select tag but it display radio buttons instead of a select box.
The list is populated by the <layout:option> and <layout:options> tags.
| Attribute Name | Description |
|---|---|
| arg0, arg1, arg2, arg3, arg4, key, locale, name, styleClass, property, value | as in <html:radio> and <bean:message> |
Display a list of checkbox populated with the <layout:option> and <layout:options> tags. The corresponding form property must be a String indexed property.
| Attribute Name | Description |
|---|---|
| cols | Number of checkbox columns |
option & options & optionsCollection - add one or many options to a select box or a list of combo box
struts-layout version of the <html:option>, <html:options> and <html:optionsCollection> tags. Only the name has changed.
The options tag has an additional attribute named "sourceOf" that is used to make interdependent combo. Its attribute "property" is an EL.
Link a child select with a main select. The main select tag must has a nested options tag with the sourceOf attribute set.
| Attribute Name | Description |
|---|---|
| collection | Property of the beans defined by the main select options tag that holds the child collections |
| dependsFrom | Form bean property this select depends from. |
| labelProperty | Property that holds the value to display. |
| property | Property that holds the value to return in the Struts form. |