public class HtmlResponseStateManager extends MyfacesResponseStateManager
Modifier and Type | Field and Description |
---|---|
static String |
INIT_PARAM_AUTOCOMPLETE_OFF_VIEW_STATE
Add autocomplete="off" to the view state hidden field.
|
static String |
STANDARD_STATE_SAVING_PARAM |
CLIENT_WINDOW_PARAM, CLIENT_WINDOW_URL_PARAM, NON_POSTBACK_VIEW_TOKEN_PARAM, RENDER_KIT_ID_PARAM, VIEW_STATE_PARAM
Constructor and Description |
---|
HtmlResponseStateManager() |
Modifier and Type | Method and Description |
---|---|
static String |
generateUpdateClientWindowId(FacesContext facesContext) |
static String |
generateUpdateViewStateId(FacesContext facesContext) |
String |
getCryptographicallyStrongTokenFromSession(FacesContext context) |
Object |
getState(FacesContext facesContext,
String viewId) |
protected StateCache |
getStateCache(FacesContext facesContext) |
String |
getViewState(FacesContext facesContext,
Object baseState) |
boolean |
isPostback(FacesContext context)
Checks if the current request is a postback
|
boolean |
isStateless(FacesContext context,
String viewId) |
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 |
writeState(FacesContext facesContext,
Object state) |
getComponentStateToRestore, getTreeStructureToRestore, writeState
public static final String STANDARD_STATE_SAVING_PARAM
@JSFWebConfigParam(since="2.2.8, 2.1.18, 2.0.24", expectedValues="true, false", defaultValue="true", group="state") public static final String INIT_PARAM_AUTOCOMPLETE_OFF_VIEW_STATE
public void writeState(FacesContext facesContext, Object state) throws IOException
writeState
in class ResponseStateManager
IOException
public void saveState(FacesContext facesContext, Object state)
MyfacesResponseStateManager
saveState
in class MyfacesResponseStateManager
public Object getState(FacesContext facesContext, String viewId)
getState
in class ResponseStateManager
public boolean isPostback(FacesContext context)
isPostback
in class ResponseStateManager
public String getViewState(FacesContext facesContext, Object baseState)
getViewState
in class ResponseStateManager
public boolean isStateless(FacesContext context, String viewId)
isStateless
in class ResponseStateManager
public String getCryptographicallyStrongTokenFromSession(FacesContext context)
getCryptographicallyStrongTokenFromSession
in class ResponseStateManager
public boolean isWriteStateAfterRenderViewRequired(FacesContext facesContext)
MyfacesResponseStateManager
isWriteStateAfterRenderViewRequired
in class MyfacesResponseStateManager
protected StateCache getStateCache(FacesContext facesContext)
public static String generateUpdateClientWindowId(FacesContext facesContext)
public static String generateUpdateViewStateId(FacesContext facesContext)
Copyright © 2021 The Apache Software Foundation. All rights reserved.