This class is used to register the JSF ELResolver
stack with the JSP 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.
| Modifier and Type | Field and Description |
|---|---|
| private static Logger | |
| private boolean | |
| private boolean | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | afterPhase(PhaseEvent
the phase event. event)Implements javax. Handle a notification that the processing for a particular phase has just been completed. |
| public synchronized void | beforePhase(PhaseEvent
the phase event. event)Implements javax. Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin. |
| public PhaseId | getPhaseId()
Implements javax. Return the identifier of the request processing phase during
which this listener is interested in processing |
| protected void | populateFacesELResolverForJsp(FacesContext
- the context)FacesContext for the current requestPopulate the FacesCompositeELResolver stack registered with JSP if a request is being processed for the very first time. |
| public static void | |
| public static void |
| LOGGER | back to summary |
|---|---|
| private static Logger LOGGER | |
| postInitCompleted | back to summary |
|---|---|
| private boolean postInitCompleted | |
| preInitCompleted | back to summary |
|---|---|
| private boolean preInitCompleted | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ELResolverInitPhaseListener | back to summary |
|---|---|
| public ELResolverInitPhaseListener() | |
| afterPhase | back to summary |
|---|---|
| public synchronized void afterPhase(PhaseEvent event) Implements javax. 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
| |
| beforePhase | back to summary |
|---|---|
| public synchronized void beforePhase(PhaseEvent event) Implements javax. 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
| |
| getPhaseId | back to summary |
|---|---|
| public PhaseId getPhaseId() Implements javax. Return the identifier of the request processing phase during
which this listener is interested in processing We return
| |
| populateFacesELResolverForJsp | back to summary |
|---|---|
| protected void populateFacesELResolverForJsp(FacesContext context) Populate the FacesCompositeELResolver stack registered with JSP if a request is being processed for the very first time. At the application initialiazation time, an empty CompositeELResolver is registered with JSP because ELResolvers can be added until the first request is serviced.
| |
| populateFacesELResolverForJsp | back to summary |
|---|---|
| public static void populateFacesELResolverForJsp(Application app, ApplicationAssociate appAssociate) | |
| removeELResolverInitPhaseListener | back to summary |
|---|---|
| public static void removeELResolverInitPhaseListener() | |