h:selectOneRadio bean value

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

[863 byte] By [Illua] at [2007-11-26 15:14:41]
# 1
Apologies, please ignore this thread. This has already been discussed here: http://forum.java.sun.com/thread.jspa?threadID=648301&messageID=3816542Illu
Illua at 2007-7-8 9:06:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...