Option

A component that renders an HTML <option> form element. The Option component must be wrapped by a Select component. For a fully worked example showing the Option component, please refer to the Select documentation.

See also: org.apache.tapestry.form.Option , Form , PropertySelection , Select

Parameters

Name Type Direction Required Default Description
selected boolean in-out yes Used to indicate whether the given option is selected.
label String in no A string which represents the option that may be selected. This is optional; any text that follows the <option> tag is considered the label, but this saves the designer from have to include one more Insert component to display the option label.

Body: allowed

Informal parameters: allowed

Reserved parameters: value

Examples

Please see the documentation for the Select component.