Class Hierarchy All Classes All Fields and Methods
Class javax.faces.component.UISelectItems
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase javax.faces.component.UISelectItemspublic class UISelectItems
extends UIComponentBase
UISelectItems is a component that may be nested inside a UISelectMany or UISelectOne component, and causes the addition of one or more SelectItem instances to the list of available options in the parent component. The value of this component (set either directly, or acquired indirectly a ValueBinding, can be of any of the following types:
- Single instance of SelectItem - This instance is added to the set of available options for the parent tag.
- Array of SelectItem - This set of instances is added to the set of available options for the parent component, in ascending subscript order.
- Collection of SelectItem - This set of instances is added to the set of available options for the parent component, in the order provided by an iterator over them.
- Map - The keys of this object (once converted to Strings) are assumed to be labels, and the values of this object (once converted to Strings) are assumed to be values, of SelectItem instances that will be constructed dynamically and added to the set of available options for the parent component, in the order provided by an iterator over the keys.
Field Index Field Description COMPONENT_FAMILY The standard component family for this component. COMPONENT_TYPE The standard component type for this component.
Constructor Index Constructor Description UISelectItems() Create a new UISelectItems instance with default property values.
Method Index Method Description String getFamily() Object getValue() Returns the value property of the UISelectItems. void restoreState(FacesContext, Object) Object saveState(FacesContext) void setValue(Object) Sets the value property of the UISelectItems.
Fields
COMPONENT_FAMILY
public static final java.lang.String COMPONENT_FAMILY
The standard component family for this component.
COMPONENT_TYPE
public static final java.lang.String COMPONENT_TYPE
The standard component type for this component.
Constructors
UISelectItems
public UISelectItems()
Create a new UISelectItems instance with default property values.
Methods
getFamily
public String getFamily()
getValue
public Object getValue()
Returns the value property of the UISelectItems.
restoreState
public void restoreState(FacesContext context, Object state)
saveState
public Object saveState(FacesContext context)
setValue
public void setValue(Object value)
Sets the value property of the UISelectItems.
- Parameters
- value - the new value
Class Hierarchy All Classes All Fields and Methods