Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

styleClass is ignored in h:selectOneRadio when using group attribute #4409

Open
cletecillc opened this issue Nov 24, 2019 · 0 comments
Open

Comments

@cletecillc
Copy link

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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant