public class RestorableViewHandler
extends javax.faces.application.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| Constructor and Description |
|---|
RestorableViewHandler(javax.faces.application.ViewHandler wrapped)
Construct a new restorable view handler around the given wrapped view handler.
|
| Modifier and Type | Method and Description |
|---|---|
javax.faces.application.ViewHandler |
getWrapped() |
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
String viewId)
First try to restore the view.
|
public RestorableViewHandler(javax.faces.application.ViewHandler wrapped)
wrapped - The wrapped view handler.public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
String viewId)
<o:enableRestoreView>, then return the newly created view, else
return null.restoreView in class javax.faces.application.ViewHandlerWrapperpublic javax.faces.application.ViewHandler getWrapped()
getWrapped in interface javax.faces.FacesWrapper<javax.faces.application.ViewHandler>getWrapped in class javax.faces.application.ViewHandlerWrapperCopyright © 2012–2014 OmniFaces. All rights reserved.