JSF-Spring

de.mindmatters.faces.application
Class NoStateManager

java.lang.Object
  extended by javax.faces.application.StateManager
      extended by de.mindmatters.faces.application.AbstractViewBuildingStateManager
          extended by de.mindmatters.faces.application.NoStateManager

public final class NoStateManager
extends AbstractViewBuildingStateManager

NoStateManager does not save the state of the component tree and will thus not restore the component state.

This StateManager will work in most cases and should be used to eliminate any state foot print on the client.

Author:
Andreas Kuhrwahl

Nested Class Summary
 
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
NoStateManager(StateManager delegate)
          Creates an OptimizedStateManager with the given state manager delegate of the underlying JSF implementation.
 
Method Summary
protected  java.lang.Object getComponentStateToSave(FacesContext context)
          
protected  void restoreComponentState(FacesContext context, UIViewRoot viewRoot, java.lang.String renderKitId)
          
 
Methods inherited from class de.mindmatters.faces.application.AbstractViewBuildingStateManager
getTreeStructureToSave, restoreTreeStructure, restoreView, saveSerializedView, writeState
 
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

NoStateManager

public NoStateManager(StateManager delegate)
Creates an OptimizedStateManager with the given state manager delegate of the underlying JSF implementation.

Parameters:
delegate - the original state manager of the underlying JSF implementation
Method Detail

getComponentStateToSave

protected java.lang.Object getComponentStateToSave(FacesContext context)

Specified by:
getComponentStateToSave in class StateManager

restoreComponentState

protected void restoreComponentState(FacesContext context,
                                     UIViewRoot viewRoot,
                                     java.lang.String renderKitId)

Specified by:
restoreComponentState in class StateManager

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG