org.apache.myfaces.renderkit
Class MyfacesResponseStateManager

java.lang.Object
  extended by javax.faces.render.ResponseStateManager
      extended by org.apache.myfaces.renderkit.MyfacesResponseStateManager
Direct Known Subclasses:
HtmlResponseStateManager

public abstract class MyfacesResponseStateManager
extends ResponseStateManager

Version:
$Revision: 1187700 $ $Date: 2011-10-22 07:19:37 -0500 (Sat, 22 Oct 2011) $
Author:
Manfred Geiler (latest modification by $Author: bommel $)

Field Summary
 
Fields inherited from class javax.faces.render.ResponseStateManager
RENDER_KIT_ID_PARAM, VIEW_STATE_PARAM
 
Constructor Summary
MyfacesResponseStateManager()
           
 
Method Summary
 boolean isWriteStateAfterRenderViewRequired(FacesContext facesContext)
          Indicates if the call to ResponseStateManager.writeState should be done after the view is fully rendered.
 void saveState(FacesContext facesContext, Object state)
          Execute additional operations like save the state on a cache when server side state saving is used.
 void writeStateAsUrlParams(FacesContext facescontext, StateManager.SerializedView serializedview)
          Deprecated.  
 
Methods inherited from class javax.faces.render.ResponseStateManager
getComponentStateToRestore, getState, getTreeStructureToRestore, getViewState, isPostback, writeState, writeState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyfacesResponseStateManager

public MyfacesResponseStateManager()
Method Detail

writeStateAsUrlParams

@Deprecated
public void writeStateAsUrlParams(FacesContext facescontext,
                                             StateManager.SerializedView serializedview)
Deprecated. 

Writes url parameters with the state info to be saved. MyfacesStateManager delegates calls to StateManager.writeState(javax.faces.context.FacesContext, javax.faces.application.StateManager.SerializedView) to this method.


saveState

public void saveState(FacesContext facesContext,
                      Object state)
Execute additional operations like save the state on a cache when server side state saving is used.


isWriteStateAfterRenderViewRequired

public boolean isWriteStateAfterRenderViewRequired(FacesContext facesContext)
Indicates if the call to ResponseStateManager.writeState should be done after the view is fully rendered. Usually this is required for client side state saving, but it is not for server side state saving, because ResponseStateManager.writeState could render a just a marker and then StateManager.saveState could be called, preventing use an additional buffer.

Parameters:
facesContext -
Returns:


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