Name

FacesEvent

Synopsis

This is the base class for all classes representing specific component events.

Synopsis

Class name:

javax.faces.event.FacesEvent

Extends:

java.util.EventObject

Implements:

java.io.Serializable

Constructors

public FacesEvent(javax.faces.component.UIComponent component)

Creates an instance for the specified source component.

Methods

public javax.faces.component.UIComponent getComponent()

Returns the source component for the event.

public javax.faces.event.PhaseId getPhaseId()

Returns the identifier for the request processing lifecycle phase when the event listeners shall be notified of the event. The default value is PhaseId.ANY_PHASE.

public abstract boolean isAppropriateListener(javax.faces.event.FacesListener listener)

Returns true if the listener is of an appropriate type for this event type.

public abstract void processListener(javax.faces.event.FacesListener listener)

Calls the listener’s event processing method.

public void queue()

Calls the source component’s queueEvent( ) method.

public void setPhaseId(javax.faces.event.PhaseId phaseId)

Sets the identifier for the request processing lifecycle phase when the event listeners shall be notified of the event. If set to PhaseId.ANY_PHASE, the listeners are notified in the same phase as where the event is queued.

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.