|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.test.mock.lifecycle.DefaultRestoreViewSupport
public class DefaultRestoreViewSupport
Constructor Summary | |
---|---|
DefaultRestoreViewSupport()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultRestoreViewSupport()
Method Detail |
---|
public void processComponentBinding(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
RestoreViewSupport
processComponentBinding
in interface RestoreViewSupport
component
- the root componentpublic String calculateViewId(javax.faces.context.FacesContext facesContext)
RestoreViewSupport
Calculates the view id from the given faces context by the following algorithm
ExternalContext.getRequestPathInfo()
ExternalContext.getRequestServletPath()
FacesException
calculateViewId
in interface RestoreViewSupport
public boolean isPostback(javax.faces.context.FacesContext facesContext)
RestoreViewSupport
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.
isPostback
in interface RestoreViewSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |