public class PortletFaceletViewHandler
extends com.sun.facelets.FaceletViewHandler
This ViewHandler implementation is needed because portions of the native Facelets ViewHandler depend on the
Servlet API and cannot be used directly in a Portlet environment.
Note: the basis for this code was a Facelets sample provided with Apache MyFaces Portlet Bridge for JSF version 2.0.0.alpha-2.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PortletFaceletViewHandler.NoopWriter |
DEFAULT_REFRESH_PERIOD, log, PARAM_BUFFER_SIZE, PARAM_BUILD_BEFORE_RESTORE, PARAM_DECORATORS, PARAM_DEVELOPMENT, PARAM_LIBRARIES, PARAM_REFRESH_PERIO, PARAM_REFRESH_PERIOD, PARAM_RESOURCE_RESOLVER, PARAM_SKIP_COMMENTS, PARAM_VIEW_MAPPINGSCHARACTER_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 and Description |
|---|
PortletFaceletViewHandler(javax.faces.application.ViewHandler parent) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.faces.context.ResponseWriter |
createResponseWriter(javax.faces.context.FacesContext context) |
protected java.lang.String |
getResponseEncoding(javax.faces.context.FacesContext context,
java.lang.String originalEncoding) |
buildView, calculateLocale, calculateRenderKitId, createCompiler, createFaceletFactory, createView, getActionURL, getDefaultSuffix, getRenderedViewId, getResourceURL, getResponseContentType, getWrapped, handleFaceletNotFound, handleRenderException, initialize, initializeCompiler, renderView, restoreView, writeStatepublic PortletFaceletViewHandler(javax.faces.application.ViewHandler parent)
protected javax.faces.context.ResponseWriter createResponseWriter(javax.faces.context.FacesContext context)
throws java.io.IOException,
javax.faces.FacesException
createResponseWriter in class com.sun.facelets.FaceletViewHandlerjava.io.IOExceptionjavax.faces.FacesExceptionprotected java.lang.String getResponseEncoding(javax.faces.context.FacesContext context,
java.lang.String originalEncoding)
getResponseEncoding in class com.sun.facelets.FaceletViewHandler