public class ELResolverInitPhaseListener extends Object implements jakarta.faces.event.PhaseListener
This class is used to register the Faces ELResolver stack with the Jakarta Server Pages container.
We overload it a bit to set a bit on the ApplicationAssociate stating we've processed a request to indicate the appliation is fully initialized.
After the first request, this PhaseListener will remove itself from all registered lifecycle instances
registered with the application.
| Constructor and Description |
|---|
ELResolverInitPhaseListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPhase(jakarta.faces.event.PhaseEvent event)
Handle a notification that the processing for a particular phase has just been completed.
|
void |
beforePhase(jakarta.faces.event.PhaseEvent event)
Handle a notification that the processing for a particular phase of the request processing lifecycle is about to
begin.
|
jakarta.faces.event.PhaseId |
getPhaseId()
Return the identifier of the request processing phase during which this listener is interested in processing
PhaseEvent events. |
static void |
populateFacesELResolverForJsp(jakarta.faces.application.Application app,
ApplicationAssociate appAssociate) |
protected void |
populateFacesELResolverForJsp(jakarta.faces.context.FacesContext context)
Populate the FacesCompositeELResolver stack registered with JSP if a request is being processed for the very first
time.
|
static void |
removeELResolverInitPhaseListener() |
public void afterPhase(jakarta.faces.event.PhaseEvent event)
Handle a notification that the processing for a particular phase has just been completed.
When invoked, this phase listener will remove itself as a registered PhaseListener with all
Lifecycle instances.
afterPhase in interface jakarta.faces.event.PhaseListenerevent - the phase event.public void beforePhase(jakarta.faces.event.PhaseEvent event)
Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin.
The implementation of this method currently calls through to
populateFacesELResolverForJsp(jakarta.faces.context.FacesContext).
beforePhase in interface jakarta.faces.event.PhaseListenerevent - the phase event.public jakarta.faces.event.PhaseId getPhaseId()
Return the identifier of the request processing phase during which this listener is interested in processing
PhaseEvent events. Legal values are the singleton instances defined by the
PhaseId class, including PhaseId.ANY_PHASE to indicate an interest in being
notified for all standard phases.
We return PhaseId.ANY_PHASE.
getPhaseId in interface jakarta.faces.event.PhaseListenerprotected void populateFacesELResolverForJsp(jakarta.faces.context.FacesContext context)
context - - the FacesContext for the current requestpublic static void populateFacesELResolverForJsp(jakarta.faces.application.Application app,
ApplicationAssociate appAssociate)
public static void removeELResolverInitPhaseListener()
Copyright © 2010–2022 JBoss by Red Hat. All rights reserved.