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

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

@cletecillc

Description

@cletecillc

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions