public final class Events
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addAfterPhaseListener(javax.faces.event.PhaseId phaseId,
Callback.Void callback)
Adds a phase listener to the current view that invokes the given callback everytime after given phase.
|
static void |
addBeforePhaseListener(javax.faces.event.PhaseId phaseId,
Callback.Void callback)
Adds a phase listener to the current view that invokes the given callback everytime before given phase ID.
|
static void |
addPhaseListener(javax.faces.event.PhaseListener phaseListener)
Adds a phase listener to the current view root of the current faces context.
|
static void |
removePhaseListener(javax.faces.event.PhaseListener phaseListener)
Removes a phase listener from the current view root of the current faces context.
|
public static void addPhaseListener(javax.faces.event.PhaseListener phaseListener)
phaseListener - The phase listener to be added to the current view root of the current faces context.public static void removePhaseListener(javax.faces.event.PhaseListener phaseListener)
phaseListener - The phase listener to be removed from the current view root of the current faces context.public static void addBeforePhaseListener(javax.faces.event.PhaseId phaseId,
Callback.Void callback)
phaseId - The phase ID to invoke the given callback everytime before.callback - The callback to be invoked everytime before the given phase ID of the current view.public static void addAfterPhaseListener(javax.faces.event.PhaseId phaseId,
Callback.Void callback)
phaseId - The phase ID to invoke the given callback everytime after.callback - The callback to be invoked everytime after the given phase ID of the current view.