Component Description
The WORadioButtonMatrix displays a multi-column array of radio
buttons based on a list of objects and allows the user to select
one of these objects. This component displays its content (everything between
the <WEBOBJECT...>
and </WEBOBJECT...>
tags
in the template file) for each of the items in list
from
left to right, and wraps around to the next line when the number
of columns reaches maxColumns
. This
component must be embedded within a WOForm.
Synopsis
WORadioButtonMatrix { list=anArray;
item=anObject; selection=theSelection;
maxColunms=aNumber;
};
Bindings
- list
- Array of objects from which the radio buttons derive
their values. For example, the array could be named
movieArray
and
contain Movie objects.
- item
- Identifier for the elements of the list. This attribute
is updated for each iteration through
list
.
For example, currentMovie
could
represent an object in movieArray
.
- selection
- Object that the user chooses from the selection list.
This attribute is updated when the user submits the form containing
the WORadioButtonMatrix. For the movie example, selection would
be a Movie object.
- maxColumns
- The number of columns of radio buttons displayed.