Package org.apache.myfaces.application
Class StateManagerImpl
- java.lang.Object
-
- javax.faces.application.StateManager
-
- org.apache.myfaces.application.StateManagerImpl
-
public class StateManagerImpl extends StateManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.faces.application.StateManager
StateManager.SerializedView
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_VIEW_REQUEST_ATTR-
Fields inherited from class javax.faces.application.StateManager
FULL_STATE_SAVING_VIEW_IDS_PARAM_NAME, IS_BUILDING_INITIAL_STATE, IS_SAVING_STATE, PARTIAL_STATE_SAVING_PARAM_NAME, SERIALIZE_SERVER_STATE_PARAM_NAME, STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER
-
-
Constructor Summary
Constructors Constructor Description StateManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectgetComponentStateToSave(FacesContext facesContext)protected RenderKitFactorygetRenderKitFactory()protected ObjectgetTreeStructureToSave(FacesContext facesContext)Return an object which contains info about the UIComponent type of each node in the view tree.UIViewRootrestoreView(FacesContext facesContext, String viewId, String renderKitId)ObjectsaveView(FacesContext facesContext)Wrap the original method and redirect to VDL StateManagementStrategy when necessaryvoidwriteState(FacesContext facesContext, Object state)-
Methods inherited from class javax.faces.application.StateManager
getViewState, isSavingStateInClient, restoreComponentState, restoreTreeStructure, saveSerializedView, writeState
-
-
-
-
Field Detail
-
SERIALIZED_VIEW_REQUEST_ATTR
public static final String SERIALIZED_VIEW_REQUEST_ATTR
-
-
Method Detail
-
getComponentStateToSave
protected Object getComponentStateToSave(FacesContext facesContext)
- Overrides:
getComponentStateToSavein classStateManager
-
getTreeStructureToSave
protected Object getTreeStructureToSave(FacesContext facesContext)
Return an object which contains info about the UIComponent type of each node in the view tree. This allows an identical UIComponent tree to be recreated later, though all the components will have just default values for their members.- Overrides:
getTreeStructureToSavein classStateManager
-
restoreView
public UIViewRoot restoreView(FacesContext facesContext, String viewId, String renderKitId)
- Specified by:
restoreViewin classStateManager
-
saveView
public Object saveView(FacesContext facesContext)
Wrap the original method and redirect to VDL StateManagementStrategy when necessary- Overrides:
saveViewin classStateManager
-
writeState
public void writeState(FacesContext facesContext, Object state) throws IOException
- Overrides:
writeStatein classStateManager- Throws:
IOException
-
getRenderKitFactory
protected RenderKitFactory getRenderKitFactory()
-
-