Class UISelectItemGroups
- java.lang.Object
-
- jakarta.faces.component.UIComponent
-
- jakarta.faces.component.UIComponentBase
-
- jakarta.faces.component.UISelectItems
-
- jakarta.faces.component.UISelectItemGroups
-
- All Implemented Interfaces:
PartialStateHolder
,StateHolder
,TransientStateHolder
,ComponentSystemEventListener
,FacesListener
,SystemEventListenerHolder
,EventListener
public class UISelectItemGroups extends UISelectItems
UISelectItemGroups is a component that may be nested inside a
UISelectMany
orUISelectOne
component, and causes the addition of one or moreSelectItemGroup
of one or moreSelectItem
instances to the list of available options in the parent component. This component accepts only children of typeUISelectItems
orUISelectItem
. Thevalue
attribute of this component, set either directly, or acquired indirectly via aValueExpression
, can be an array orIterable
of items of any type which is acceptable by thevalue
attribute of any nestedUISelectItems
orUISelectItem
component.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
COMPONENT_TYPE
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, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEY
-
-
Constructor Summary
Constructors Constructor Description UISelectItemGroups()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getValue()
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 Detail
-
COMPONENT_TYPE
public static final String COMPONENT_TYPE
The standard component type for this component.
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
public Object 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.
-
-