org.apache.myfaces.application
Class StateManagerImpl

java.lang.Object
  extended by javax.faces.application.StateManager
      extended by org.apache.myfaces.application.StateManagerImpl

public class StateManagerImpl
extends javax.faces.application.StateManager


Nested Class Summary
 
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
FULL_STATE_SAVING_VIEW_IDS_PARAM_NAME, PARTIAL_STATE_SAVING_PARAM_NAME, STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER
 
Constructor Summary
StateManagerImpl()
           
 
Method Summary
protected  java.lang.Object getComponentStateToSave(javax.faces.context.FacesContext facesContext)
           
protected  javax.faces.render.RenderKitFactory getRenderKitFactory()
           
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.
 javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext facesContext, java.lang.String viewId, java.lang.String renderKitId)
           
 java.lang.Object saveView(javax.faces.context.FacesContext facesContext)
          Wrap the original method and redirect to VDL StateManagementStrategy when necessary
 void writeState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 
Methods inherited from class javax.faces.application.StateManager
getViewState, isSavingStateInClient, restoreComponentState, restoreTreeStructure, saveSerializedView, writeState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateManagerImpl

public StateManagerImpl()
Method Detail

getComponentStateToSave

protected java.lang.Object getComponentStateToSave(javax.faces.context.FacesContext facesContext)
Overrides:
getComponentStateToSave in class javax.faces.application.StateManager

getTreeStructureToSave

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. This allows an identical UIComponent tree to be recreated later, though all the components will have just default values for their members.

Overrides:
getTreeStructureToSave in class javax.faces.application.StateManager

restoreView

public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext facesContext,
                                                    java.lang.String viewId,
                                                    java.lang.String renderKitId)
Specified by:
restoreView in class javax.faces.application.StateManager

saveView

public java.lang.Object saveView(javax.faces.context.FacesContext facesContext)
Wrap the original method and redirect to VDL StateManagementStrategy when necessary

Overrides:
saveView in class javax.faces.application.StateManager

writeState

public void writeState(javax.faces.context.FacesContext facesContext,
                       java.lang.Object state)
                throws java.io.IOException
Overrides:
writeState in class javax.faces.application.StateManager
Throws:
java.io.IOException

getRenderKitFactory

protected javax.faces.render.RenderKitFactory getRenderKitFactory()


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.