public class DefaultRestoreViewSupport extends Object implements RestoreViewSupport
| Constructor and Description |
|---|
DefaultRestoreViewSupport() |
| Modifier and Type | Method and Description |
|---|---|
String |
calculateViewId(javax.faces.context.FacesContext facesContext)
Calculates the view id from the given faces context by the following algorithm
|
boolean |
isPostback(javax.faces.context.FacesContext facesContext)
Determine if the current request is a post back by the following algorithm.
|
void |
processComponentBinding(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
Processes the component tree.
|
public void processComponentBinding(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
RestoreViewSupportprocessComponentBinding in interface RestoreViewSupportcomponent - the root componentpublic String calculateViewId(javax.faces.context.FacesContext facesContext)
RestoreViewSupportCalculates the view id from the given faces context by the following algorithm
ExternalContext#getRequestPathInfo()
ExternalContext#getRequestServletPath()
FacesException
calculateViewId in interface RestoreViewSupportpublic boolean isPostback(javax.faces.context.FacesContext facesContext)
RestoreViewSupportDetermine if the current request is a post back by the following algorithm.
Find the render-kit-id for the current request by calling calculateRenderKitId() on the Application’s ViewHandler. Get that RenderKit’s ResponseStateManager and call its isPostback() method, passing the given FacesContext.
isPostback in interface RestoreViewSupportCopyright © 2017 The Apache Software Foundation. All rights reserved.