Radio

Provides a HTML <input type="radio"> form element. The Radio component must be wrapped (possibly indirectly) inside a RadioGroup component.

Generally the PropertySelection component is used in preference to the Radio and RadioGroup , except in special cases.

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

Parameters

Name Type Required Default Description
value Object no The value is used to determine if the radio button is initially selected (when rendering) and is the value assigned to the selected parameter when the form is submitted, if the HTML radio button is selected.
disabled boolean no false If true, then the Radio is disabled. It will write a disabled attribute into its tag when rendering, and will not update its selected binding. A Radio may also be disabled if its containing RadioGroup is disabled.

Body: removed

Informal parameters: allowed

Reserved parameters: checked, name, type

Examples

See RadioGroup for a Radio component example.