Name
SelectItemGroup
Synopsis
This class represents a grouping
of
selectable items for UISelectOne
and
UISelectMany
components, typically rendered as a
submenu. The standard renderers use the label
property value as the submenu label and ignore the value. While
instances of this class can be included in the
selectItems
property value, forming nested groups,
the standard renderers support only one-level grouping.
Class name: |
javax.faces.model.SelectItemGroup |
Extends: |
javax.faces.model.SelectItem |
Implements: |
java.io.Serializable |
Constructors
-
public SelectItemGroup()
Creates a new, empty instance.
-
public SelectItem(String label)
Creates a new instance with the specified label.
-
public SelectItem(String label, String description, boolean disabled javax.faces.model.SelectItem[] selectItems)
Creates a new instance with the specified label, description, disabled flag, and
SelectItem
instances.
Methods
-
public javax.faces.model.SelectItem[] getSelectItems()
Returns the
SelectItem
instances in the group ornull
if not set.-
public setSelectItems(javax.faces.model.SelectItem[] selectItems)
Sets the
SelectItem
instances in the group.
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.