-
Available since OmniFaces 1.3
OmniFaces view handler. This class was before version 2.5 known as
RestorableViewHandler
. This view handler performs the following tasks:
- Since 1.3: Recreate entire view when
EnableRestorableView
tag is in the metadata. This effectively prevents theViewExpiredException
on the view. - Since 2.2: Detect unload requests coming from
ViewScoped
beans. This will create a dummy view and only restore the view scoped state instead of building and restoring the entire view. - Since 2.5: If project stage is development, then throw an
IllegalStateException
when there's a nestedUIForm
component. - Since 3.10: If
ViewResourceHandler.isViewResourceRequest(FacesContext)
istrue
, then replace the HTML response writer with a XML response writer inrenderView(FacesContext, UIViewRoot)
, and ensure that proper action URL is returned inViewHandlerWrapper.getActionURL(FacesContext, String)
.
Documentation & Sources