|
||||||||||
| 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 |
|---|
javax.faces.application.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 java.lang.Object |
deserializeView(java.lang.Object state)
|
protected java.lang.Object |
getComponentStateToSave(javax.faces.context.FacesContext facesContext)
|
protected int |
getNextViewSequence(javax.faces.context.FacesContext context)
|
protected javax.faces.render.RenderKitFactory |
getRenderKitFactory()
|
protected java.lang.Object |
getSerializedViewFromServletSession(javax.faces.context.FacesContext context,
java.lang.String viewId,
java.lang.Integer sequence)
|
protected java.lang.Integer |
getServerStateId(java.lang.Object[] state)
|
protected java.lang.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 |
nextViewSequence(javax.faces.context.FacesContext facescontext)
|
protected void |
restoreComponentState(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIViewRoot uiViewRoot,
java.lang.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,
java.lang.String viewId,
java.lang.String renderKitId)
See getTreeStructureToSave. |
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext facesContext,
java.lang.String viewId,
java.lang.String renderKitId)
|
javax.faces.application.StateManager.SerializedView |
saveSerializedView(javax.faces.context.FacesContext facesContext)
|
protected void |
saveSerializedViewInServletSession(javax.faces.context.FacesContext context,
java.lang.Object serializedView)
|
protected java.lang.Object |
serializeView(javax.faces.context.FacesContext context,
java.lang.Object 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 |
| Methods inherited from class javax.faces.application.StateManager |
|---|
isSavingStateInClient, saveView, writeState |
| 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 java.lang.Object getComponentStateToSave(javax.faces.context.FacesContext facesContext)
getComponentStateToSave in class javax.faces.application.StateManagerprotected java.lang.Object getTreeStructureToSave(javax.faces.context.FacesContext facesContext)
getTreeStructureToSave in class javax.faces.application.StateManager
protected void restoreComponentState(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIViewRoot uiViewRoot,
java.lang.String renderKitId)
restoreComponentState in class javax.faces.application.StateManagerprotected java.lang.Integer getServerStateId(java.lang.Object[] state)
protected javax.faces.component.UIViewRoot restoreTreeStructure(javax.faces.context.FacesContext facesContext,
java.lang.String viewId,
java.lang.String renderKitId)
restoreTreeStructure in class javax.faces.application.StateManager
public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext facesContext,
java.lang.String viewId,
java.lang.String renderKitId)
restoreView in class javax.faces.application.StateManager
public javax.faces.application.StateManager.SerializedView saveSerializedView(javax.faces.context.FacesContext facesContext)
throws java.lang.IllegalStateException
saveSerializedView in class javax.faces.application.StateManagerjava.lang.IllegalStateException
public void writeState(javax.faces.context.FacesContext facesContext,
javax.faces.application.StateManager.SerializedView serializedView)
throws java.io.IOException
writeState in class javax.faces.application.StateManagerjava.io.IOException
public void writeStateAsUrlParams(javax.faces.context.FacesContext facesContext,
javax.faces.application.StateManager.SerializedView serializedView)
throws java.io.IOException
writeStateAsUrlParams in class MyfacesStateManagerfacesContext - serializedView -
java.io.IOExceptionprotected javax.faces.render.RenderKitFactory getRenderKitFactory()
protected void saveSerializedViewInServletSession(javax.faces.context.FacesContext context,
java.lang.Object serializedView)
protected java.lang.Object getSerializedViewFromServletSession(javax.faces.context.FacesContext context,
java.lang.String viewId,
java.lang.Integer sequence)
protected int getNextViewSequence(javax.faces.context.FacesContext context)
protected void nextViewSequence(javax.faces.context.FacesContext facescontext)
protected java.lang.Object serializeView(javax.faces.context.FacesContext context,
java.lang.Object 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 java.lang.Object deserializeView(java.lang.Object state)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||