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 UISelectManyorUISelectOnecomponent, and causes the addition of one or moreSelectItemGroupof one or moreSelectIteminstances to the list of available options in the parent component. This component accepts only children of typeUISelectItemsorUISelectItem. Thevalueattribute of this component, set either directly, or acquired indirectly via aValueExpression, can be an array orIterableof items of any type which is acceptable by thevalueattribute of any nestedUISelectItemsorUISelectItemcomponent.- Since:
- 4.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCOMPONENT_TYPEThe standard component type for this component.- 
Fields inherited from class jakarta.faces.component.UISelectItemsCOMPONENT_FAMILY
 - 
Fields inherited from class jakarta.faces.component.UIComponentATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEY
 
- 
 - 
Constructor SummaryConstructors Constructor Description UISelectItemGroups()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetValue()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.UISelectItemsgetFamily, setValue, setValueExpression
 - 
Methods inherited from class jakarta.faces.component.UIComponentBaseaddClientBehavior, 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.UIComponentencodeAll, 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_TYPEpublic static final String COMPONENT_TYPE The standard component type for this component. - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getValuepublic Object 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 class- UISelectItems
- Returns:
- the value.
 
 
- 
 
-