Name

UIInput

Synopsis

This class represents an input component. The user can enter a value for an input component, which is then saved as a property of an application class after conversion and validation. The default rendererType is javax.faces.Text.

When the value entered by a user is different than the previous value, the input 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.UIInput

Extends:

javax.faces.component.UIOutput

Implements:

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

Fields

public static String COMPONENT_FAMILY

The component family: javax.faces.Input.

public static String COMPONENT_TYPE

The component family: javax.faces.Input.

public static String CONVERSION_MESSAGE_ID

The ID for the conversion error message: javax.faces.component.UIInput.CONVERSION.

public static String REQUIRED_MESSAGE_ID

The ID for the required value error message: javax.faces.component.UIInput.REQUIRED.

Constructor

public UIInput()

Creates a new instance.

Methods

public void addValidator(javax.faces.validator.Validator validator)

Adds the Validator to the list of validator for this component’s value.

public void addValueChangeListener(javax.faces.event.ValueChangeListener l)

Adds the ValueChangeListener ...

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.