public class JspStateManagerImpl extends MyfacesStateManager
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JspStateManagerImpl.SerializedViewCollection |
protected static class |
JspStateManagerImpl.SerializedViewKey |
| Constructor and Description |
|---|
JspStateManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.faces.application.StateManager.SerializedView |
deserializeView(Object state) |
protected Object |
getComponentStateToSave(javax.faces.context.FacesContext facesContext) |
protected javax.faces.render.RenderKitFactory |
getRenderKitFactory() |
protected javax.faces.application.StateManager.SerializedView |
getSerializedViewFromServletSession(javax.faces.context.FacesContext context,
String viewId,
String sequenceStr) |
protected Object |
getTreeStructureToSave(javax.faces.context.FacesContext facesContext)
Return an object which contains info about the UIComponent type
of each node in the view tree.
|
protected boolean |
isCompressStateInSession(javax.faces.context.FacesContext context)
Reads the value of the
org.apache.myfaces.COMPRESS_STATE_IN_SESSION context parameter. |
protected boolean |
isSerializeStateInSession(javax.faces.context.FacesContext context)
Reads the value of the
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION context parameter. |
protected void |
restoreComponentState(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIViewRoot uiViewRoot,
String renderKitId)
Given a tree of UIComponent objects created the default constructor
for each node, retrieve saved state info (from either the client or
the server) and walk the tree restoring the members of each node
from the saved state information.
|
protected javax.faces.component.UIViewRoot |
restoreTreeStructure(javax.faces.context.FacesContext facesContext,
String viewId,
String renderKitId)
See getTreeStructureToSave.
|
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext facescontext,
String viewId,
String renderKitId) |
javax.faces.application.StateManager.SerializedView |
saveSerializedView(javax.faces.context.FacesContext facesContext) |
protected void |
saveSerializedViewInServletSession(javax.faces.context.FacesContext context,
javax.faces.application.StateManager.SerializedView serializedView) |
protected Object |
serializeView(javax.faces.context.FacesContext context,
javax.faces.application.StateManager.SerializedView serializedView) |
void |
writeState(javax.faces.context.FacesContext facesContext,
javax.faces.application.StateManager.SerializedView serializedView) |
void |
writeStateAsUrlParams(javax.faces.context.FacesContext facesContext,
javax.faces.application.StateManager.SerializedView serializedView)
MyFaces extension
|
protected Object getComponentStateToSave(javax.faces.context.FacesContext facesContext)
getComponentStateToSave in class javax.faces.application.StateManagerprotected Object getTreeStructureToSave(javax.faces.context.FacesContext facesContext)
getTreeStructureToSave in class javax.faces.application.StateManagerprotected void restoreComponentState(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIViewRoot uiViewRoot,
String renderKitId)
restoreComponentState in class javax.faces.application.StateManagerprotected javax.faces.component.UIViewRoot restoreTreeStructure(javax.faces.context.FacesContext facesContext,
String viewId,
String renderKitId)
restoreTreeStructure in class javax.faces.application.StateManagerpublic javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext facescontext,
String viewId,
String renderKitId)
restoreView in class javax.faces.application.StateManagerpublic javax.faces.application.StateManager.SerializedView saveSerializedView(javax.faces.context.FacesContext facesContext)
throws IllegalStateException
saveSerializedView in class javax.faces.application.StateManagerIllegalStateExceptionpublic void writeState(javax.faces.context.FacesContext facesContext,
javax.faces.application.StateManager.SerializedView serializedView)
throws IOException
writeState in class javax.faces.application.StateManagerIOExceptionpublic void writeStateAsUrlParams(javax.faces.context.FacesContext facesContext,
javax.faces.application.StateManager.SerializedView serializedView)
throws IOException
writeStateAsUrlParams in class MyfacesStateManagerfacesContext - serializedView - IOExceptionprotected javax.faces.render.RenderKitFactory getRenderKitFactory()
protected void saveSerializedViewInServletSession(javax.faces.context.FacesContext context,
javax.faces.application.StateManager.SerializedView serializedView)
protected javax.faces.application.StateManager.SerializedView getSerializedViewFromServletSession(javax.faces.context.FacesContext context,
String viewId,
String sequenceStr)
protected Object serializeView(javax.faces.context.FacesContext context, javax.faces.application.StateManager.SerializedView serializedView)
protected boolean isSerializeStateInSession(javax.faces.context.FacesContext context)
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION context parameter.context - FacesContext for the request we are processing.SERIALIZE_STATE_IN_SESSION_PARAMprotected boolean isCompressStateInSession(javax.faces.context.FacesContext context)
org.apache.myfaces.COMPRESS_STATE_IN_SESSION context parameter.context - FacesContext for the request we are processing.COMPRESS_SERVER_STATE_PARAMprotected javax.faces.application.StateManager.SerializedView deserializeView(Object state)
Copyright © 2013 Apache Software Foundation. All Rights Reserved.