Click or drag to resize
RadioButton

The RadioButton control creates a check box that is part of a group in which you can select only one box.

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

label

Creates a label tag next to the input tag.

labelposition

Where to place the label tag, "left" or "right"; default: left.

id

id attribute of the radio input

name

the name of the radio input; the boxes are grouped using this attribute

value

XPath attribute determining the checkbox value which will be sent if the checkbox is checked

init

XPath expression determining the initialization value; if this is equal to value, the checkbox will be checked

enabled

true or false; if false, the checkbox is grayed and cannot be checked or unchecked

Child elements

None.

Parent elements

Element

Description

any xhtml or xsl element

Styling information

The XHTML structure created by the acs:RadioButton is the following:

<input id="myid" value="myvalue" type="radio" name="myid" checked=""><label for="myid">My option</label>
Examples
<acs:RadioButton name="myname" id="myid1" label="My option 1" init="USER/MYOPTION" value="myvalue1" />
<acs:RadioButton name="myname" id="myid2" label="My option 2" init="USER/MYOPTION" value="myvalue2" />