public interface RestoreViewSupport
Modifier and Type | Method and Description |
---|---|
String |
calculateViewId(FacesContext facesContext)
Calculates the view id from the given faces context by the following algorithm
|
boolean |
checkViewExists(FacesContext facesContext,
String viewId)
Check if a view exists
|
String |
deriveViewId(FacesContext context,
String viewId)
Deprecated.
Use ViewHandler.deriveLogicalViewId
|
boolean |
isPostback(FacesContext facesContext)
Determine if the current request is a post back by the following algorithm.
|
void |
processComponentBinding(FacesContext facesContext,
UIComponent component)
Processes the component tree.
|
String calculateViewId(FacesContext facesContext)
Calculates the view id from the given faces context by the following algorithm
ExternalContext.getRequestPathInfo()
ExternalContext.getRequestServletPath()
FacesException
@Deprecated String deriveViewId(FacesContext context, String viewId)
context
- viewId
- void processComponentBinding(FacesContext facesContext, UIComponent component)
facesContext
- component
- the root componentboolean isPostback(FacesContext facesContext)
Determine 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.
facesContext
- boolean checkViewExists(FacesContext facesContext, String viewId)
facesContext
- viewId
- Copyright © 2020 The Apache Software Foundation. All rights reserved.