org.apache.myfaces.renderkit.html
Class HtmlResponseStateManager

java.lang.Object
  extended by javax.faces.render.ResponseStateManager
      extended by org.apache.myfaces.renderkit.MyfacesResponseStateManager
          extended by org.apache.myfaces.renderkit.html.HtmlResponseStateManager

public class HtmlResponseStateManager
extends MyfacesResponseStateManager

Version:
$Revision: 1102937 $ $Date: 2011-05-13 20:06:02 -0500 (Fri, 13 May 2011) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)

Field Summary
static java.lang.String INIT_PARAM_HANDLE_STATE_CACHING_MECHANICS
           
static java.lang.String STANDARD_STATE_SAVING_PARAM
           
 
Fields inherited from class javax.faces.render.ResponseStateManager
RENDER_KIT_ID_PARAM, VIEW_STATE_PARAM
 
Constructor Summary
HtmlResponseStateManager()
           
 
Method Summary
 java.lang.Object getState(javax.faces.context.FacesContext facesContext, java.lang.String viewId)
           
protected  StateCache getStateCache(javax.faces.context.FacesContext facesContext)
           
 java.lang.String getViewState(javax.faces.context.FacesContext facesContext, java.lang.Object baseState)
           
protected  boolean isHandlingStateCachingMechanics(javax.faces.context.FacesContext facesContext)
           
 boolean isPostback(javax.faces.context.FacesContext context)
          Checks if the current request is a postback
 boolean isWriteStateAfterRenderViewRequired(javax.faces.context.FacesContext facesContext)
          Indicates if the call to ResponseStateManager.writeState should be done after the view is fully rendered.
 void saveState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
          Execute additional operations like save the state on a cache when server side state saving is used.
 void writeState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 
Methods inherited from class org.apache.myfaces.renderkit.MyfacesResponseStateManager
writeStateAsUrlParams
 
Methods inherited from class javax.faces.render.ResponseStateManager
getComponentStateToRestore, getTreeStructureToRestore, writeState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STANDARD_STATE_SAVING_PARAM

public static final java.lang.String STANDARD_STATE_SAVING_PARAM
See Also:
Constant Field Values

INIT_PARAM_HANDLE_STATE_CACHING_MECHANICS

@JSFWebConfigParam(since="2.0.6",
                   expectedValues="true, false",
                   defaultValue="true")
public static final java.lang.String INIT_PARAM_HANDLE_STATE_CACHING_MECHANICS
See Also:
Constant Field Values
Constructor Detail

HtmlResponseStateManager

public HtmlResponseStateManager()
Method Detail

isHandlingStateCachingMechanics

protected boolean isHandlingStateCachingMechanics(javax.faces.context.FacesContext facesContext)

writeState

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

saveState

public void saveState(javax.faces.context.FacesContext facesContext,
                      java.lang.Object state)
Description copied from class: MyfacesResponseStateManager
Execute additional operations like save the state on a cache when server side state saving is used.

Overrides:
saveState in class MyfacesResponseStateManager

getState

public java.lang.Object getState(javax.faces.context.FacesContext facesContext,
                                 java.lang.String viewId)
Overrides:
getState in class javax.faces.render.ResponseStateManager

isPostback

public boolean isPostback(javax.faces.context.FacesContext context)
Checks if the current request is a postback

Overrides:
isPostback in class javax.faces.render.ResponseStateManager
Since:
1.2

getViewState

public java.lang.String getViewState(javax.faces.context.FacesContext facesContext,
                                     java.lang.Object baseState)
Overrides:
getViewState in class javax.faces.render.ResponseStateManager

isWriteStateAfterRenderViewRequired

public boolean isWriteStateAfterRenderViewRequired(javax.faces.context.FacesContext facesContext)
Description copied from class: MyfacesResponseStateManager
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.

Overrides:
isWriteStateAfterRenderViewRequired in class MyfacesResponseStateManager
Returns:

getStateCache

protected StateCache getStateCache(javax.faces.context.FacesContext facesContext)


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