public class RestoreViewInterceptor extends FacesInterceptor
FACES_ENABLED, log
Constructor and Description |
---|
RestoreViewInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
executePhase(String viewId,
javax.faces.context.FacesContext facesContext)
Restore View (JSF.2.2.1)
|
protected void |
recursivelyHandleComponentReferencesAndSetValid(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent parent)
Walk the component tree, executing any component-bindings to reattach
components to their backing beans.
|
protected void |
recursivelyHandleComponentReferencesAndSetValid(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent parent,
boolean forceHandle) |
destroy, init, intercept, isFacesEnabled
informPhaseListenersAfter, informPhaseListenersBefore, isResponseComplete, setLifecycle, shouldRenderResponse
protected boolean executePhase(String viewId, javax.faces.context.FacesContext facesContext)
executePhase
in class FacesInterceptor
viewId
- The view idfacesContext
- The faces contextprotected void recursivelyHandleComponentReferencesAndSetValid(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent parent)
Note that this method effectively breaks encapsulation; instead of asking each component to update itself and its children, this method just reaches into each component. That makes it impossible for any component to customise its behaviour at this point.
This has been filed as an issue against the spec. Until this issue is resolved, we'll add a new marker-interface for components to allow them to define their interest in handling children bindings themselves.
protected void recursivelyHandleComponentReferencesAndSetValid(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent parent, boolean forceHandle)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.