I'd like to customize the default layout of <h:selectOneRadio>
.
In my case, I need to put a <h:selectManyCheckbox>
after every radio button. This is what I have so far:
<h:selectOneRadio value="#{user.Request}">
<f:selectItem itemValue="Request1" itemLabel="Request1" />
<f:selectItem itemValue="Request2" itemLabel="Request2" />
</h:selectOneRadio>
<h:selectManyCheckbox value="#{user.Request1}">
<f:selectItem itemValue="Certificate1" itemLabel="Certificate1" />
<f:selectItem itemValue="Certificate2" itemLabel="Certificate2" />
</h:selectManyCheckbox>
<h:selectManyCheckbox value="#{user.Request2}">
<f:selectItem itemValue="Certificate3" itemLabel="Certificate3" />
<f:selectItem itemValue="Certificate4" itemLabel="Certificate4" />
</h:selectManyCheckbox>
I tried to put them after each select item:
<h:selectOneRadio value="#{user.Request}">
<f:selectItem itemValue="Request1" itemLabel="Request1" />
<h:selectManyCheckbox value="#{user.Request1}">
<f:selectItem itemValue="Certificate1" itemLabel="Certificate1" />
<f:selectItem itemValue="Certificate2" itemLabel="Certificate2" />
</h:selectManyCheckbox>
<f:selectItem itemValue="Request2" itemLabel="Request2" />
<h:selectManyCheckbox value="#{user.Request2}">
<f:selectItem itemValue="Certificate3" itemLabel="Certificate3" />
<f:selectItem itemValue="Certificate4" itemLabel="Certificate4" />
</h:selectManyCheckbox>
</h:selectOneRadio>
But it didn't work. What is the proper way to do this?