public class RestorableViewHandler extends ViewHandlerWrapper
restoreView(FacesContext, String)
returns null
and the current request is a
postback and the view in question has <enableRestorableView>
in the metadata. This effectively
prevents the ViewExpiredException
on the view.EnableRestorableView
CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME
Constructor and Description |
---|
RestorableViewHandler(ViewHandler wrapped)
Construct a new restorable view handler around the given wrapped view handler.
|
Modifier and Type | Method and Description |
---|---|
ViewHandler |
getWrapped() |
UIViewRoot |
restoreView(FacesContext context,
String viewId)
First try to restore the view.
|
calculateCharacterEncoding, calculateLocale, calculateRenderKitId, createView, deriveViewId, getActionURL, getBookmarkableURL, getRedirectURL, getResourceURL, getViewDeclarationLanguage, initView, renderView, writeState
public RestorableViewHandler(ViewHandler wrapped)
wrapped
- The wrapped view handler.public UIViewRoot restoreView(FacesContext context, String viewId)
<o:enableRestoreView>
, then return the newly created view, else
return null
.restoreView
in class ViewHandlerWrapper
public ViewHandler getWrapped()
getWrapped
in interface FacesWrapper<ViewHandler>
getWrapped
in class ViewHandlerWrapper