com.sun.faces.lifecycle
public class RestoreViewPhase extends Phase
Same lifetime and scope as DefaultLifecycleImpl.
Modifier and Type | Field and Description |
---|---|
private static java.util.logging.Logger |
LOGGER |
private static java.lang.String |
SKIP_ITERATION_HINT |
private static java.lang.String |
WEBAPP_ERROR_PAGE_MARKER |
private WebConfiguration |
webConfig |
Constructor and Description |
---|
RestoreViewPhase() |
Modifier and Type | Method and Description |
---|---|
private void |
deliverPostRestoreStateEvent(javax.faces.context.FacesContext facesContext) |
void |
doPhase(javax.faces.context.FacesContext context,
javax.faces.lifecycle.Lifecycle lifecycle,
java.util.ListIterator<javax.faces.event.PhaseListener> listeners)
Performs PhaseListener processing and invokes the execute method
of the Phase.
|
void |
execute(javax.faces.context.FacesContext facesContext)
PRECONDITION: the necessary factories have been installed in the
ServletContext attr set.
|
javax.faces.event.PhaseId |
getId() |
private WebConfiguration |
getWebConfig(javax.faces.context.FacesContext context) |
private boolean |
is11CompatEnabled(javax.faces.context.FacesContext context) |
private static boolean |
isErrorPage(javax.faces.context.FacesContext context)
The Servlet specification states that if an error occurs
in the application and there is a matching error-page declaration,
the that original request the cause the error is forwarded
to the error page.
|
private void |
notifyAfter(javax.faces.context.FacesContext context,
javax.faces.lifecycle.Lifecycle lifecycle)
Notify afterPhase listener that is registered on the View Root.
|
handleAfterPhase, handleBeforePhase, queueException, queueException
private static final java.lang.String WEBAPP_ERROR_PAGE_MARKER
private static java.util.logging.Logger LOGGER
private WebConfiguration webConfig
private static java.lang.String SKIP_ITERATION_HINT
public javax.faces.event.PhaseId getId()
public void doPhase(javax.faces.context.FacesContext context, javax.faces.lifecycle.Lifecycle lifecycle, java.util.ListIterator<javax.faces.event.PhaseListener> listeners)
Phase
public void execute(javax.faces.context.FacesContext facesContext) throws javax.faces.FacesException
POSTCONDITION: The facesContext has been initialized with a tree.
private void deliverPostRestoreStateEvent(javax.faces.context.FacesContext facesContext) throws javax.faces.FacesException
javax.faces.FacesException
private void notifyAfter(javax.faces.context.FacesContext context, javax.faces.lifecycle.Lifecycle lifecycle)
context
- the FacesContext for the current requestlifecycle
- lifecycle instanceprivate static boolean isErrorPage(javax.faces.context.FacesContext context)
context
- the FacesContext for the current requesttrue
if WEBAPP_ERROR_PAGE_MARKER
is found in the request, otherwise return false
private WebConfiguration getWebConfig(javax.faces.context.FacesContext context)
private boolean is11CompatEnabled(javax.faces.context.FacesContext context)
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.