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
ConstructorsConstructorDescriptionViewHandlerImpl(ViewHandler oldViewHandler) Construct aViewHandlerImpldecorating the specifiedViewHandlerinstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderView(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 aViewHandlerImpldecorating the specifiedViewHandlerinstance.- Parameters:
oldViewHandler-ViewHandlerto 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:
renderViewin classViewHandlerWrapper- Parameters:
context-FacesContextfor the current requestviewToRender-UIViewRootto be rendered- Throws:
IOExceptionFacesException
-