Project Documentation
Foundation

Description

This is an extended version of javax.faces.component.UISelectItems. By using the component there is no need to manually create a SelectItem collection because component automatically populates SelectItem objects from types like Collection, Map and etc..

Screen Shot

Not Available

API

since 1.1.5
component-family javax.faces.SelectItems
renderer-type -
component-class org.apache.myfaces.custom.selectitems.UISelectItems
renderer-class -
tag-class org.apache.myfaces.custom.selectitems.SelectItemsTag

Usage

<h:selectOneMenu id="menu1" value="#{selectItemsBean.selectedCarColor}">
   	<t:selectItems value="#{selectItemsBean.carList}" var="Car" itemLabel="#{Car.type}" itemValue="#{Car.color}" />
</h:selectOneMenu>

Syntax

<s:selectItems>

value="value of the selection"
var="name of the iterator"
itemLabel="label of a selection option"
itemValue="value of a selection option"

Additional Information

This component can be used with any selection component. Also it's compatible with RI.