Differences between revisions 2 and 3
Revision 2 as of 2005-06-01 14:19:28
Size: 564
Comment:
Revision 3 as of 2009-09-20 23:01:03
Size: 564
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
["Category:JSFTags"] [[Category:JSFTags]]

Using radio buttons

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

  • <f:selectItems value="#{managedBean.itemList}" />

</h:selectOneRadio>

Using a select list

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

  • <f:selectItems value="#{managedBean.itemList}" />

</h:selectOneMenu>

Using a select list with a height

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

  • <f:selectItems value="#{managedBean.itemList}" />

</h:selectListbox>

Category:JSFTags

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