@Deprecated public class FaceletViewHandler extends ViewHandler
| Modifier and Type | Class and Description |
|---|---|
protected static class |
FaceletViewHandler.NullWriter
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_REFRESH_PERIOD
Deprecated.
|
static long |
DEFAULT_REFRESH_PERIOD_PRODUCTION
Deprecated.
|
protected static Logger |
log
Deprecated.
|
static String |
PARAM_BUFFER_SIZE
Deprecated.
|
static String |
PARAM_BUILD_BEFORE_RESTORE
Deprecated.
|
static String |
PARAM_DECORATORS
Deprecated.
|
static String |
PARAM_DEVELOPMENT
Deprecated.
|
static String |
PARAM_LIBRARIES
Deprecated.
|
static String |
PARAM_REFRESH_PERIO
Deprecated.
|
static String |
PARAM_REFRESH_PERIOD
Deprecated.
|
static String |
PARAM_RESOURCE_RESOLVER
Deprecated.
|
static String |
PARAM_SKIP_COMMENTS
Deprecated.
|
static String |
PARAM_VIEW_MAPPINGS
Deprecated.
Context initialization parameter for defining what viewIds should be handled by Facelets, and what should not.
|
CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME| Constructor and Description |
|---|
FaceletViewHandler(ViewHandler parent)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildView(FacesContext context,
UIViewRoot viewToRender)
Deprecated.
|
Locale |
calculateLocale(FacesContext context)
Deprecated.
|
String |
calculateRenderKitId(FacesContext context)
Deprecated.
|
protected Compiler |
createCompiler()
Deprecated.
|
protected FaceletFactory |
createFaceletFactory(Compiler c)
Deprecated.
|
protected ResponseWriter |
createResponseWriter(FacesContext context)
Deprecated.
|
UIViewRoot |
createView(FacesContext context,
String viewId)
Deprecated.
|
String |
getActionURL(FacesContext context,
String viewId)
Deprecated.
|
String |
getDefaultSuffix(FacesContext context)
Deprecated.
|
protected String |
getRenderedViewId(FacesContext context,
String actionId)
Deprecated.
|
String |
getResourceURL(FacesContext context,
String path)
Deprecated.
|
protected String |
getResponseContentType(FacesContext context,
String orig)
Deprecated.
Generate the content type
|
protected String |
getResponseEncoding(FacesContext context,
String orig)
Deprecated.
Generate the encoding
|
protected ViewHandler |
getWrapped()
Deprecated.
|
protected void |
handleFaceletNotFound(FacesContext context,
String viewId)
Deprecated.
|
protected void |
handleRenderException(FacesContext context,
Exception e)
Deprecated.
|
protected void |
initialize(FacesContext context)
Deprecated.
Initialize the ViewHandler during its first request.
|
protected void |
initializeCompiler(Compiler c)
Deprecated.
|
void |
renderView(FacesContext context,
UIViewRoot viewToRender)
Deprecated.
|
UIViewRoot |
restoreView(FacesContext context,
String viewId)
Deprecated.
|
void |
writeState(FacesContext context)
Deprecated.
|
calculateCharacterEncoding, deriveLogicalViewId, deriveViewId, getBookmarkableURL, getRedirectURL, getViewDeclarationLanguage, initViewprotected static final Logger log
public static final long DEFAULT_REFRESH_PERIOD
public static final long DEFAULT_REFRESH_PERIOD_PRODUCTION
public static final String PARAM_REFRESH_PERIOD
public static final String PARAM_REFRESH_PERIO
public static final String PARAM_SKIP_COMMENTS
public static final String PARAM_VIEW_MAPPINGS
<context-param>
<param-name>facelets.VIEW_MAPPINGS</param-name>
<param-value>/demos/*; *.xhtml</param-value>
</context-param>
would use Facelets for processing all viewIds in the "/demos" directory or that end in .xhtml, and use the
standard JSP engine for all other viewIds.
NOTE: when using this parameter, you need to use prefix-mapping for the
FacesServlet (that is, /faces/*, not *.jsf).
public static final String PARAM_LIBRARIES
public static final String PARAM_DECORATORS
public static final String PARAM_DEVELOPMENT
public static final String PARAM_RESOURCE_RESOLVER
public static final String PARAM_BUILD_BEFORE_RESTORE
public static final String PARAM_BUFFER_SIZE
public FaceletViewHandler(ViewHandler parent)
protected void initialize(FacesContext context)
protected FaceletFactory createFaceletFactory(Compiler c)
protected Compiler createCompiler()
protected void initializeCompiler(Compiler c)
public UIViewRoot restoreView(FacesContext context, String viewId)
restoreView in class ViewHandlerprotected ViewHandler getWrapped()
protected ResponseWriter createResponseWriter(FacesContext context) throws IOException, FacesException
IOExceptionFacesExceptionprotected String getResponseEncoding(FacesContext context, String orig)
context - orig - protected String getResponseContentType(FacesContext context, String orig)
context - orig - protected void buildView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException
IOExceptionFacesExceptionpublic void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException
renderView in class ViewHandlerIOExceptionFacesExceptionprotected void handleRenderException(FacesContext context, Exception e) throws IOException, javax.el.ELException, FacesException
IOExceptionjavax.el.ELExceptionFacesExceptionprotected void handleFaceletNotFound(FacesContext context, String viewId) throws FacesException, IOException
FacesExceptionIOExceptionpublic String getDefaultSuffix(FacesContext context) throws FacesException
FacesExceptionprotected String getRenderedViewId(FacesContext context, String actionId)
public void writeState(FacesContext context) throws IOException
writeState in class ViewHandlerIOExceptionpublic Locale calculateLocale(FacesContext context)
calculateLocale in class ViewHandlerpublic String calculateRenderKitId(FacesContext context)
calculateRenderKitId in class ViewHandlerpublic UIViewRoot createView(FacesContext context, String viewId)
createView in class ViewHandlerpublic String getActionURL(FacesContext context, String viewId)
getActionURL in class ViewHandlerpublic String getResourceURL(FacesContext context, String path)
getResourceURL in class ViewHandlerCopyright © 2016 The Apache Software Foundation. All Rights Reserved.