crm:selectOneRadio

Overview

The <crm:selectOneRadio> tag is used to display an element on the page that allows user to choose a single item from a collection.

Attributes

NameRequiredTypeDefaultDescription
classNamefalseStringnullThe class name of the value of the component.

columnClasses

falseStringui-grid-col-12

Comma separated list of column style classes of the gird layout that will be used to display the component.

Column style class should be prefixed with ui-grid-col- and suffixed with the number of columns that content will take (out of 12).

For example, for two columns with the same size the columnClasses should be "ui-grid-col-6,ui-grid-col-6".

columnsfalseInteger1

Number of columns of the gird layout that will be used to display the component.

displayValuetrueStringnullThe displayed value of the component in view mode.
idtrueStringnullUnique identifier of the component.
itemLabeltrueStringnameLabel of the item in the collection.
labelKeyfalseStringnull

A valid key defined in translation properties file. Its translation through the glossary will be used as the presentable name of the component.

layoutfalseStringresponsive

Layout of the radio buttons. 

Allowed values are lineDirection, pageDirection, custom, responsive and grid.

managedBeantrueStringnullThe name of the Java managed bean class that will be used for retrieving the component values.
mandatoryfalseBooleanfalseMarks component as required.
modefalseStringThe mode of the managed bean.

The mode of the component. 

Allowed values are VIEW and EDIT.

onChangeFunctionfalseStringnull

Defines the function call triggered when input element loses focus and its value has been modified since gaining focus.

optionsListtrueListnull

A collection of available items in the collection.

processfalseString@this and the value of the refresh attributeComponent(s) to process in partial request.
radioButtonColumnsfalseInteger1Number of columns in radio buttons layout.
readonlyfalseBooleanfalseFlag indicating that this component will prevent changes by the user.
refreshfalseString@thisComponent(s) to update with ajax.
typefalseStringnullThe type of the value of the component.
valuetrueObjectnullThe value of the component.
visiblefalseBooleantrue

Controls the visibility of the component.

Getting Started

The following example shows a select one radio component.