Class ViewHandlerImpl
java.lang.Object
jakarta.faces.application.ViewHandler
jakarta.faces.application.ViewHandlerWrapper
org.apache.struts.faces.application.ViewHandlerImpl
- All Implemented Interfaces:
FacesWrapper<ViewHandler>
Custom
ViewHandler
implementation that adds features
specific to the Struts-Faces Integration Library. It leverages the
"decorator pattern" customization strategy that JSF supports, by
delegating most processing to the ViewHandler
instance
handed to our constructor.-
Field Summary
Fields inherited from class jakarta.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, DISABLE_FACELET_JSF_VIEWHANDLER_PARAM_NAME, FACELETS_BUFFER_SIZE_PARAM_NAME, FACELETS_DECORATORS_PARAM_NAME, FACELETS_LIBRARIES_PARAM_NAME, FACELETS_REFRESH_PERIOD_PARAM_NAME, FACELETS_SKIP_COMMENTS_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME
-
Constructor Summary
ConstructorDescriptionViewHandlerImpl
(ViewHandler oldViewHandler) Construct aViewHandlerImpl
decorating the specifiedViewHandler
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
renderView
(FacesContext context, UIViewRoot viewToRender) If the Struts application has set aLocale
, pass it on to JSF prior to delegating the actual rendering.Methods inherited from class jakarta.faces.application.ViewHandlerWrapper
addProtectedView, calculateCharacterEncoding, calculateLocale, calculateRenderKitId, createView, deriveLogicalViewId, deriveViewId, getActionURL, getBookmarkableURL, getProtectedViewsUnmodifiable, getRedirectURL, getResourceURL, getViewDeclarationLanguage, getViews, getViews, getWebsocketURL, getWrapped, initView, removeProtectedView, restoreView, writeState
-
Constructor Details
-
ViewHandlerImpl
Construct aViewHandlerImpl
decorating the specifiedViewHandler
instance.- Parameters:
oldViewHandler
-ViewHandler
to be decorated
-
-
Method Details
-
renderView
public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException If the Struts application has set aLocale
, pass it on to JSF prior to delegating the actual rendering.- Overrides:
renderView
in classViewHandlerWrapper
- Parameters:
context
-FacesContext
for the current requestviewToRender
-UIViewRoot
to be rendered- Throws:
IOException
FacesException
-