javax.faces.component
public class: UISelectItems [javadoc |
source]
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UISelectItems
All Implemented Interfaces:
PartialStateHolder, ComponentSystemEventListener, SystemEventListenerHolder
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 javax.el.ValueExpression , 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 Summary |
---|
public static final String | COMPONENT_TYPE | The standard component type for this component. |
public static final String | COMPONENT_FAMILY | The standard component family for this component. |
Fields inherited from javax.faces.component.UIComponent: |
---|
CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, BEANINFO_KEY, FACETS_KEY, VIEW_LOCATION_KEY, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, attributesThatAreSet, stateHelper, compositeParent, bindings, initialState, listenersByEventClass |
Methods from javax.faces.component.UIComponentBase: |
---|
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getDescriptorMap, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods from javax.faces.component.UIComponent: |
---|
addFacesListener, broadcast, clearInitialState, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getFamily, getId, getListenersForEventClass, getNamingContainer, getParent, getRenderer, getRendererType, getRendersChildren, getResourceBundleMap, getStateHelper, getStateHelper, getValueBinding, getValueExpression, initialStateMarked, invokeOnComponent, isCompositeComponent, isInView, isRendered, isVisitable, markInitialState, popComponentFromEL, processDecodes, processEvent, processRestoreState, processSaveState, processUpdates, processValidators, pushComponentToEL, queueEvent, removeFacesListener, setId, setInView, setParent, setRendered, setRendererType, setValueBinding, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTree |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.faces.component.UISelectItems Detail: |
public String getFamily() {
return (COMPONENT_FAMILY);
}
|
public Object getValue() {
return getStateHelper().eval(PropertyKeys.value);
}
|
public void setValue(Object value) {
getStateHelper().put(PropertyKeys.value, value);
}
|