Class UISelectItemGroups
- All Implemented Interfaces:
PartialStateHolder,StateHolder,TransientStateHolder,ComponentSystemEventListener,FacesListener,SystemEventListenerHolder,EventListener
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.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe standard component type for this component.Fields inherited from class jakarta.faces.component.UISelectItems
COMPONENT_FAMILYFields inherited from class jakarta.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Iterate over thevalueattribute and wrap each item in a newSelectItemGroupinstance whereby the item is exposed as a request attribute under the key specified by thevarproperty.Methods inherited from class jakarta.faces.component.UISelectItems
getFamily, setValue, setValueExpressionMethods inherited from class jakarta.faces.component.UIComponentBase
addClientBehavior, 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, unsubscribeFromEventMethods inherited from class jakarta.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTree
-
Field Details
-
COMPONENT_TYPE
The standard component type for this component.
- See Also:
-
-
Constructor Details
-
UISelectItemGroups
public UISelectItemGroups()
-
-
Method Details
-
getValue
Iterate over the
valueattribute and wrap each item in a newSelectItemGroupinstance whereby the item is exposed as a request attribute under the key specified by thevarproperty. This must allow any nestedUISelectItemsorUISelectItemcomponent to access the item via their attributes. Finally return theseSelectItemGroupinstances as an ordered collection.- Overrides:
getValuein classUISelectItems- Returns:
- the value.
-