org.ajax4jsf.application
Class AjaxStateManager
java.lang.Object
javax.faces.application.StateManager
org.ajax4jsf.application.AjaxStateManager
public class AjaxStateManager
- extends javax.faces.application.StateManager
- Author:
- shura
| Nested classes/interfaces inherited from class javax.faces.application.StateManager |
javax.faces.application.StateManager.SerializedView |
| Fields inherited from class javax.faces.application.StateManager |
STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER |
|
Constructor Summary |
AjaxStateManager(javax.faces.application.StateManager parent)
|
|
Method Summary |
protected javax.faces.application.StateManager.SerializedView |
buildSerializedView(javax.faces.context.FacesContext context)
|
protected java.lang.Object |
getAdditionalState(javax.faces.context.FacesContext context)
|
protected java.lang.Object |
getComponentStateToSave(javax.faces.context.FacesContext context)
|
protected java.lang.Object |
getNextViewId(javax.faces.context.FacesContext context)
|
protected int |
getNumberOfViews(javax.faces.context.ExternalContext externalContext)
|
protected javax.faces.render.RenderKit |
getRenderKit(javax.faces.context.FacesContext context,
java.lang.String renderKitId)
|
protected java.lang.Object |
getTreeStructureToSave(javax.faces.context.FacesContext context)
|
protected void |
restoreAdditionalState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
protected void |
restoreComponentState(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot viewRoot,
java.lang.String renderKitId)
|
protected java.lang.Object[] |
restoreStateFromSession(javax.faces.context.FacesContext context,
java.lang.String viewId,
java.lang.String renderKitId)
|
protected javax.faces.component.UIViewRoot |
restoreTreeStructure(javax.faces.context.FacesContext context,
java.lang.String viewId,
java.lang.String renderKitId)
|
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
java.lang.String viewId,
java.lang.String renderKitId)
|
javax.faces.application.StateManager.SerializedView |
saveSerializedView(javax.faces.context.FacesContext context)
|
protected javax.faces.application.StateManager.SerializedView |
saveStateInSession(javax.faces.context.FacesContext context,
java.lang.Object treeStructure,
java.lang.Object state)
|
void |
writeState(javax.faces.context.FacesContext context,
javax.faces.application.StateManager.SerializedView state)
|
| 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 |
DEFAULT_NUMBER_OF_VIEWS
protected static final int DEFAULT_NUMBER_OF_VIEWS
- See Also:
- Constant Field Values
AjaxStateManager
public AjaxStateManager(javax.faces.application.StateManager parent)
- Parameters:
parent -
getComponentStateToSave
protected java.lang.Object getComponentStateToSave(javax.faces.context.FacesContext context)
- Specified by:
getComponentStateToSave in class javax.faces.application.StateManager
getTreeStructureToSave
protected java.lang.Object getTreeStructureToSave(javax.faces.context.FacesContext context)
- Specified by:
getTreeStructureToSave in class javax.faces.application.StateManager
restoreComponentState
protected void restoreComponentState(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot viewRoot,
java.lang.String renderKitId)
- Specified by:
restoreComponentState in class javax.faces.application.StateManager
restoreTreeStructure
protected javax.faces.component.UIViewRoot restoreTreeStructure(javax.faces.context.FacesContext context,
java.lang.String viewId,
java.lang.String renderKitId)
- Specified by:
restoreTreeStructure in class javax.faces.application.StateManager
writeState
public void writeState(javax.faces.context.FacesContext context,
javax.faces.application.StateManager.SerializedView state)
throws java.io.IOException
- Specified by:
writeState in class javax.faces.application.StateManager
- Throws:
java.io.IOException
restoreView
public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
java.lang.String viewId,
java.lang.String renderKitId)
- Specified by:
restoreView in class javax.faces.application.StateManager
restoreStateFromSession
protected java.lang.Object[] restoreStateFromSession(javax.faces.context.FacesContext context,
java.lang.String viewId,
java.lang.String renderKitId)
saveSerializedView
public javax.faces.application.StateManager.SerializedView saveSerializedView(javax.faces.context.FacesContext context)
- Specified by:
saveSerializedView in class javax.faces.application.StateManager
buildSerializedView
protected javax.faces.application.StateManager.SerializedView buildSerializedView(javax.faces.context.FacesContext context)
- Parameters:
context -
- Returns:
saveStateInSession
protected javax.faces.application.StateManager.SerializedView saveStateInSession(javax.faces.context.FacesContext context,
java.lang.Object treeStructure,
java.lang.Object state)
- Parameters:
context - treeStructure - state -
- Returns:
getAdditionalState
protected java.lang.Object getAdditionalState(javax.faces.context.FacesContext context)
restoreAdditionalState
protected void restoreAdditionalState(javax.faces.context.FacesContext context,
java.lang.Object state)
getNextViewId
protected java.lang.Object getNextViewId(javax.faces.context.FacesContext context)
getNumberOfViews
protected int getNumberOfViews(javax.faces.context.ExternalContext externalContext)
getRenderKit
protected javax.faces.render.RenderKit getRenderKit(javax.faces.context.FacesContext context,
java.lang.String renderKitId)
Copyright © 2007. All Rights Reserved.