Using radio buttons

<h:selectOneRadio id="myComponent" value="#{managedBean.selectedItem}">

</h:selectOneRadio>

Using a select list

<h:selectOneMenu id="myComponent" value="#{managedBean.selectedItem}">

</h:selectOneMenu>

Using a select list with a height

<h:selectOneListbox id="myComponent" value="#{managedBean.selectedItem}">

</h:selectListbox>

Category:JSFTags

UISelectOne (last edited 2009-09-20 23:01:03 by localhost)