Name
UISelectItems
Synopsis
This class represents a select items
component. A select item
component represents one or more choices for its parent (which must
be a component that lets the user select among a number of choices),
either as a SelectItem
instance, a
SelectItem[]
, a
java.util.Collection
with
SelectItem
instances, or a
java.util.Map
with keys to use as item labels and
values to use as item values. The select items
component’s value is rendered by its parent.
Class name: |
javax.faces.component.UISelectItems |
Extends: |
javax.faces.component.UIComponentBase |
Implements: |
javax.faces.component.StateHolder |
Fields
-
public static String COMPONENT_FAMILY
The component family:
javax.faces.UISelectItems
.-
public static String COMPONENT_TYPE
The component family:
javax.faces.UISelectItems
.
Constructor
-
public UISelectItems()
Creates a new instance.
Methods
-
public String getFamily()
Returns the component family ID.
-
public Object getValue()
Returns the component value.
-
public void restoreState(javax.faces.context.FacesContext context, Object state)
Restores the state for this instance from the provided value; an
Object
previously returned by thesaveState()
method.-
public Object saveState(javax.faces.context.FacesContext context)
Returns the state for this instance as an
Object
to be passed to therestoreState()
method when the instance is restored for the next request.-
public void setValue(Object value)
Sets the component value, a
SelectItem
instance, aSelectItem[]
, ajava.util.Collection ...
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.