When using the `group` attribute in `h:selectOneRadio`, the styleClass attribute is ignored. Ex: ``` <h:selectOneRadio styleClass="custom-control-input" id="dpToday" group="dpFilter" value="#{bean.value}"> <f:selectItem itemValue="0" /> </h:selectOneRadio> ``` The output is: ``` <input type="radio" name="j_idt13:j_idt14:dpFilter" id="j_idt13:j_idt14:datePicker:dpToday" value="j_idt13:j_idt14:datePicker:dpToday1:0" /> ``` The styleClass is ignored. The workaround is to use the `passthrough` feature. Ex: ``` <h:selectOneRadio p:class="custom-control-input" id="dpToday" group="dpFilter" value="#{bean.value}"> <f:selectItem itemValue="0" /> </h:selectOneRadio> ```
When using the
groupattribute inh:selectOneRadio, the styleClass attribute is ignored. Ex:The output is:
The styleClass is ignored. The workaround is to use the
passthroughfeature. Ex: