Top Description Fields Constructors Methods
jakarta.faces.component

public Class UISelectItemGroups

extends UISelectItems
Class Inheritance
Static Imports
com.sun.faces.util.SelectItemUtils.collectSelectItems, .SelectItemUtils.createSelectItems

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 jakarta.el.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 TypeField and Description
public static final String
COMPONENT_TYPE

Hides jakarta.faces.component.UISelectItems.COMPONENT_TYPE.

The standard component type for this component.

Inherited from jakarta.faces.component.UISelectItems:
COMPONENT_FAMILY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getValue()

Overrides jakarta.faces.component.UISelectItems.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.

Inherited from jakarta.faces.component.UISelectItems:
getFamilysetValuesetValueExpression

Field Detail

COMPONENT_TYPEback to summary
public static final String COMPONENT_TYPE

Hides jakarta.faces.component.UISelectItems.COMPONENT_TYPE.

The standard component type for this component.

Constructor Detail

UISelectItemGroupsback to summary
public UISelectItemGroups()

Method Detail

getValueback to summary
public Object getValue()

Overrides jakarta.faces.component.UISelectItems.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.

Returns:Object

Doc from jakarta.faces.component.UISelectItems.getValue.

the value.

Annotations
@Override