-
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
EnableRestorableViewtag is in the metadata. This effectively prevents theViewExpiredExceptionon the view. - Since 2.2: Detect unload requests coming from
ViewScopedbeans. 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
IllegalStateExceptionwhen there's a nestedUIFormcomponent. - 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