|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.application.StateManager
org.apache.myfaces.application.MyfacesStateManager
org.apache.myfaces.application.jsp.JspStateManagerImpl
public class JspStateManagerImpl
Default StateManager implementation for use when views are defined via tags in JSP pages.
Nested Class Summary | |
---|---|
protected static class |
JspStateManagerImpl.SerializedViewCollection
|
protected static class |
JspStateManagerImpl.SerializedViewKey
|
Nested classes/interfaces inherited from class javax.faces.application.StateManager |
---|
StateManager.SerializedView |
Field Summary |
---|
Fields inherited from class javax.faces.application.StateManager |
---|
STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER |
Constructor Summary | |
---|---|
JspStateManagerImpl()
|
Method Summary | |
---|---|
protected StateManager.SerializedView |
deserializeView(Object state)
|
protected Object |
getComponentStateToSave(FacesContext facesContext)
|
protected RenderKitFactory |
getRenderKitFactory()
|
protected StateManager.SerializedView |
getSerializedViewFromServletSession(FacesContext context,
String viewId,
String sequenceStr)
|
protected Object |
getTreeStructureToSave(FacesContext facesContext)
Return an object which contains info about the UIComponent type of each node in the view tree. |
protected boolean |
isCompressStateInSession(FacesContext context)
Reads the value of the org.apache.myfaces.COMPRESS_STATE_IN_SESSION context parameter. |
protected boolean |
isSerializeStateInSession(FacesContext context)
Reads the value of the org.apache.myfaces.SERIALIZE_STATE_IN_SESSION context parameter. |
protected void |
restoreComponentState(FacesContext facesContext,
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 UIViewRoot |
restoreTreeStructure(FacesContext facesContext,
String viewId,
String renderKitId)
See getTreeStructureToSave. |
UIViewRoot |
restoreView(FacesContext facescontext,
String viewId,
String renderKitId)
|
StateManager.SerializedView |
saveSerializedView(FacesContext facesContext)
|
protected void |
saveSerializedViewInServletSession(FacesContext context,
StateManager.SerializedView serializedView)
|
protected Object |
serializeView(FacesContext context,
StateManager.SerializedView serializedView)
|
void |
writeState(FacesContext facesContext,
StateManager.SerializedView serializedView)
|
void |
writeStateAsUrlParams(FacesContext facesContext,
StateManager.SerializedView serializedView)
MyFaces extension |
Methods inherited from class javax.faces.application.StateManager |
---|
isSavingStateInClient |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JspStateManagerImpl()
Method Detail |
---|
protected Object getComponentStateToSave(FacesContext facesContext)
getComponentStateToSave
in class StateManager
protected Object getTreeStructureToSave(FacesContext facesContext)
getTreeStructureToSave
in class StateManager
protected void restoreComponentState(FacesContext facesContext, UIViewRoot uiViewRoot, String renderKitId)
restoreComponentState
in class StateManager
protected UIViewRoot restoreTreeStructure(FacesContext facesContext, String viewId, String renderKitId)
restoreTreeStructure
in class StateManager
public UIViewRoot restoreView(FacesContext facescontext, String viewId, String renderKitId)
restoreView
in class StateManager
public StateManager.SerializedView saveSerializedView(FacesContext facesContext) throws IllegalStateException
saveSerializedView
in class StateManager
IllegalStateException
public void writeState(FacesContext facesContext, StateManager.SerializedView serializedView) throws IOException
writeState
in class StateManager
IOException
public void writeStateAsUrlParams(FacesContext facesContext, StateManager.SerializedView serializedView) throws IOException
writeStateAsUrlParams
in class MyfacesStateManager
facesContext
- serializedView
-
IOException
protected RenderKitFactory getRenderKitFactory()
protected void saveSerializedViewInServletSession(FacesContext context, StateManager.SerializedView serializedView)
protected StateManager.SerializedView getSerializedViewFromServletSession(FacesContext context, String viewId, String sequenceStr)
protected Object serializeView(FacesContext context, StateManager.SerializedView serializedView)
protected boolean isSerializeStateInSession(FacesContext context)
org.apache.myfaces.SERIALIZE_STATE_IN_SESSION
context parameter.
context
- FacesContext
for the request we are processing.
SERIALIZE_STATE_IN_SESSION_PARAM
protected boolean isCompressStateInSession(FacesContext context)
org.apache.myfaces.COMPRESS_STATE_IN_SESSION
context parameter.
context
- FacesContext
for the request we are processing.
COMPRESS_SERVER_STATE_PARAM
protected StateManager.SerializedView deserializeView(Object state)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |