Hi all,
I have a bean that has a boolean value (called hidestaff) and there is a radio button on my jsp page that must represent this value.
For example, if the boolean is 'true' then the 'yes' radio button should appear as selected.
Here is my code:
<h:selectOneRadio value="#{edit.dataToEdit.hidestaff}" id="choice">
<f:selectItem id="chno" itemLabel="No" itemValue="No"/>
<f:selectItem id="chyes" itemLabel="Yes" itemValue="Yes"/>
</h:selectOneRadio>
That code is probably way off, could someone point me in the right direction as to how this is done?
Cheers,
Illu