Bauke has suggested that new attributes be added to h:selectOneRadio
rather than implementing the IceFaces/Tomahawk/PrimeFaces solution for
radio buttons (a new component). The old Sun Woodstock components
provides working examples of how Bauke's suggestion can be used:
https://web.archive.org/web/20090427173310/http://webdev2.sun.com/woodstock-tlddocs/webuijsf/radioButton.html
Example 1: Two grouped boolean radio buttons with value bindings
<webuijsf:radioButton id="rb0" name="rb1grp"
selected="#{tldRbCbExample.selectedRb0}"/>
<webuijsf:radioButton id="rb1" name="rb1grp"
selected="#{tldRbCbExample.selectedRb1}"/>
Example 2: Two grouped boolean radio buttons with value bindings, that
display an image and a label
<webuijsf:radioButton id="rb2" name="rb2grp" imageURL="tree_server.gif"
label="Server" selected="#{tldRbCbExample.selectedRb2}"/>
<webuijsf:radioButton id="rb3" name="rb2grp" imageURL="pool_tree.gif"
label="Pool" selected="#{tldRbCbExample.selectedRb3}"/>
Example 3: Two grouped String valued radio buttons with value bindings
and labels
<webuijsf:radioButton id="rb4" name="rb3grp" label="Print"
selectedValue="Print" selected="#{tldRbCbExample.selectedRb4}"/>
<webuijsf:radioButton id="rb5" name="rb3grp" label="Fax"
selectedValue="Fax" selected="#{tldRbCbExample.selectedRb5}"/>
Example 4: Two grouped object valued radio buttons with value bindings
and labels
<webuijsf:radioButton id="rb6" name="rb4grp" label="Print"
selectedValue="#{tldRbCbExample.selectedValueRb6}"
selected="#{tldRbCbExample.selectedRb6}"
converter="#{tldRbCbExample.rbConverter}"/>
<webuijsf:radioButton id="rb7" name="rb4grp" label="Fax"
selectedValue="#{tldRbCbExample.selectedValueRb7}"
selected="#{tldRbCbExample.selectedRb7}"
converter="#{tldRbCbExample.rbConverter}"/>
..... there are nine different examples on the webpage.
Thanks,
Ryan