Name

UISelectMany

Synopsis

This class represents a select-many component. A select-many component lets the user select one or more items among a set of items represented by UISelectItem and UISelectItems components, which is then saved as a property of an application class after conversion and validation. If the component is bound to a property, the data type for the select items must be the same basic type (either a primitive type or the corresponding boxed type) as the property data type. The default rendererType is javax.faces.Listbox.

When the selections made by a user is different than the previous selection, the component fires a ValueChangeEvent, which can be handled by the application through a value changed event method or one or more listeners, in the order: javax.faces.event.ValueChangeListener instances (in the order they are registered), and then the value change listener method.

Class name:

javax.faces.component.UISelectMany

Extends:

javax.faces.component.UIInput

Implements:

javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder

Fields

public static String COMPONENT_FAMILY

The component family: javax.faces.SelectMany.

public static String COMPONENT_TYPE

The component family: javax.faces.SelectMany.

public static String INVALID_MESSAGE_ID

The ID for the invalid value error message: javax.faces.component.UISelectMany.INVALID.

Constructor

public UISelectMany()

Creates a new instance.

Methods

protected boolean compareValues(Object previous, Object ...

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.