public class UISelectItemGroups extends UISelectItems
UISelectItemGroups is a component that may be nested inside a UISelectMany or UISelectOne component, and causes the addition
of one or more SelectItemGroup of one or more SelectItem instances to the list of available options in the parent component. This component
accepts only children of type UISelectItems or UISelectItem. The value attribute of this component, set either directly, or
acquired indirectly via a ValueExpression, can be an array or Iterable of items of any type which is acceptable by the
value attribute of any nested UISelectItems or UISelectItem component.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE
The standard component type for this component.
|
COMPONENT_FAMILYATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEY| Constructor and Description |
|---|
UISelectItemGroups() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getValue()
Iterate over the
value attribute and wrap each item in a new SelectItemGroup instance whereby the item is exposed as a request
attribute under the key specified by the var property. |
getFamily, setValue, setValueExpressionaddClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTreepublic static final java.lang.String COMPONENT_TYPE
The standard component type for this component.
public java.lang.Object getValue()
Iterate over the value attribute and wrap each item in a new SelectItemGroup instance whereby the item is exposed as a request
attribute under the key specified by the var property. This must allow any nested UISelectItems or UISelectItem component
to access the item via their attributes. Finally return these SelectItemGroup instances as an ordered collection.
getValue in class UISelectItems