- 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
Modifier and TypeFieldDescriptionstatic final String
The standard component type for this component.Fields inherited from class jakarta.faces.component.UISelectItems
COMPONENT_FAMILY
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Iterate over thevalue
attribute and wrap each item in a newSelectItemGroup
instance whereby the item is exposed as a request attribute under the key specified by thevar
property.Methods inherited from class jakarta.faces.component.UISelectItems
getFamily, setValue, setValueExpression
Methods 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, unsubscribeFromEvent
Methods 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
-
-
Constructor Details
-
UISelectItemGroups
public UISelectItemGroups()
-
-
Method Details
-
getValue
Iterate over the
value
attribute and wrap each item in a newSelectItemGroup
instance whereby the item is exposed as a request attribute under the key specified by thevar
property. This must allow any nestedUISelectItems
orUISelectItem
component to access the item via their attributes. Finally return theseSelectItemGroup
instances as an ordered collection.- Overrides:
getValue
in classUISelectItems
- Returns:
- the value.
-