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, writeStatepublic 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 ResponseStateManagerIOExceptionpublic void saveState(FacesContext facesContext, Object state)
MyfacesResponseStateManagersaveState in class MyfacesResponseStateManagerpublic Object getState(FacesContext facesContext, String viewId)
getState in class ResponseStateManagerpublic boolean isPostback(FacesContext context)
isPostback in class ResponseStateManagerpublic String getViewState(FacesContext facesContext, Object baseState)
getViewState in class ResponseStateManagerpublic boolean isStateless(FacesContext context, String viewId)
isStateless in class ResponseStateManagerpublic String getCryptographicallyStrongTokenFromSession(FacesContext context)
getCryptographicallyStrongTokenFromSession in class ResponseStateManagerpublic boolean isWriteStateAfterRenderViewRequired(FacesContext facesContext)
MyfacesResponseStateManagerisWriteStateAfterRenderViewRequired in class MyfacesResponseStateManagerprotected 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.