How to add radio-inline control-label
style classes to the label generated by this code?
<h:selectOneRadio>
<f:selectItem itemValue="0" itemLabel="Male" />
<f:selectItem itemValue="1" itemLabel="Female" />
</h:selectOneRadio>
How to add radio-inline control-label
style classes to the label generated by this code?
<h:selectOneRadio>
<f:selectItem itemValue="0" itemLabel="Male" />
<f:selectItem itemValue="1" itemLabel="Female" />
</h:selectOneRadio>
You can use
enabledClass
anddisabledClass
attributes for this. They will be applied on the rendered label. Assuming that you don't have disabled items, this should do.An alternative is to redefine the CSS selector as follows in order to select and style the labels.
A completely different alternative is to manually customize the radio buttons, see also <h:selectOneRadio> renders table element, how to avoid this?