|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.application.ViewHandler
org.apache.myfaces.view.facelets.FaceletViewHandler
@Deprecated public class FaceletViewHandler
ViewHandler implementation for Facelets
Nested Class Summary | |
---|---|
protected static class |
FaceletViewHandler.NullWriter
Deprecated. |
Field Summary | |
---|---|
static long |
DEFAULT_REFRESH_PERIOD
Deprecated. |
protected static java.util.logging.Logger |
log
Deprecated. |
static java.lang.String |
PARAM_BUFFER_SIZE
Deprecated. |
static java.lang.String |
PARAM_BUILD_BEFORE_RESTORE
Deprecated. |
static java.lang.String |
PARAM_DECORATORS
Deprecated. |
static java.lang.String |
PARAM_DEVELOPMENT
Deprecated. |
static java.lang.String |
PARAM_LIBRARIES
Deprecated. |
static java.lang.String |
PARAM_REFRESH_PERIO
Deprecated. |
static java.lang.String |
PARAM_REFRESH_PERIOD
Deprecated. |
static java.lang.String |
PARAM_RESOURCE_RESOLVER
Deprecated. |
static java.lang.String |
PARAM_SKIP_COMMENTS
Deprecated. |
static java.lang.String |
PARAM_VIEW_MAPPINGS
Deprecated. Context initialization parameter for defining what viewIds should be handled by Facelets, and what should not. |
Fields inherited from class javax.faces.application.ViewHandler |
---|
CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME |
Constructor Summary | |
---|---|
FaceletViewHandler(ViewHandler parent)
Deprecated. |
Method Summary | |
---|---|
protected void |
buildView(FacesContext context,
UIViewRoot viewToRender)
Deprecated. |
java.util.Locale |
calculateLocale(FacesContext context)
Deprecated. |
java.lang.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,
java.lang.String viewId)
Deprecated. |
java.lang.String |
getActionURL(FacesContext context,
java.lang.String viewId)
Deprecated. |
java.lang.String |
getDefaultSuffix(FacesContext context)
Deprecated. |
protected java.lang.String |
getRenderedViewId(FacesContext context,
java.lang.String actionId)
Deprecated. |
java.lang.String |
getResourceURL(FacesContext context,
java.lang.String path)
Deprecated. |
protected java.lang.String |
getResponseContentType(FacesContext context,
java.lang.String orig)
Deprecated. Generate the content type |
protected java.lang.String |
getResponseEncoding(FacesContext context,
java.lang.String orig)
Deprecated. Generate the encoding |
protected ViewHandler |
getWrapped()
Deprecated. |
protected void |
handleFaceletNotFound(FacesContext context,
java.lang.String viewId)
Deprecated. |
protected void |
handleRenderException(FacesContext context,
java.lang.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,
java.lang.String viewId)
Deprecated. |
void |
writeState(FacesContext context)
Deprecated. |
Methods inherited from class javax.faces.application.ViewHandler |
---|
calculateCharacterEncoding, deriveViewId, getBookmarkableURL, getRedirectURL, getViewDeclarationLanguage, initView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger log
public static final long DEFAULT_REFRESH_PERIOD
public static final java.lang.String PARAM_REFRESH_PERIOD
public static final java.lang.String PARAM_REFRESH_PERIO
public static final java.lang.String PARAM_SKIP_COMMENTS
public static final java.lang.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 java.lang.String PARAM_LIBRARIES
public static final java.lang.String PARAM_DECORATORS
public static final java.lang.String PARAM_DEVELOPMENT
public static final java.lang.String PARAM_RESOURCE_RESOLVER
public static final java.lang.String PARAM_BUILD_BEFORE_RESTORE
public static final java.lang.String PARAM_BUFFER_SIZE
Constructor Detail |
---|
public FaceletViewHandler(ViewHandler parent)
Method Detail |
---|
protected void initialize(FacesContext context)
protected FaceletFactory createFaceletFactory(Compiler c)
protected Compiler createCompiler()
protected void initializeCompiler(Compiler c)
public UIViewRoot restoreView(FacesContext context, java.lang.String viewId)
restoreView
in class ViewHandler
protected ViewHandler getWrapped()
protected ResponseWriter createResponseWriter(FacesContext context) throws java.io.IOException, FacesException
java.io.IOException
FacesException
protected java.lang.String getResponseEncoding(FacesContext context, java.lang.String orig)
context
- orig
-
protected java.lang.String getResponseContentType(FacesContext context, java.lang.String orig)
context
- orig
-
protected void buildView(FacesContext context, UIViewRoot viewToRender) throws java.io.IOException, FacesException
java.io.IOException
FacesException
public void renderView(FacesContext context, UIViewRoot viewToRender) throws java.io.IOException, FacesException
renderView
in class ViewHandler
java.io.IOException
FacesException
protected void handleRenderException(FacesContext context, java.lang.Exception e) throws java.io.IOException, javax.el.ELException, FacesException
java.io.IOException
javax.el.ELException
FacesException
protected void handleFaceletNotFound(FacesContext context, java.lang.String viewId) throws FacesException, java.io.IOException
FacesException
java.io.IOException
public java.lang.String getDefaultSuffix(FacesContext context) throws FacesException
FacesException
protected java.lang.String getRenderedViewId(FacesContext context, java.lang.String actionId)
public void writeState(FacesContext context) throws java.io.IOException
writeState
in class ViewHandler
java.io.IOException
public java.util.Locale calculateLocale(FacesContext context)
calculateLocale
in class ViewHandler
public java.lang.String calculateRenderKitId(FacesContext context)
calculateRenderKitId
in class ViewHandler
public UIViewRoot createView(FacesContext context, java.lang.String viewId)
createView
in class ViewHandler
public java.lang.String getActionURL(FacesContext context, java.lang.String viewId)
getActionURL
in class ViewHandler
public java.lang.String getResourceURL(FacesContext context, java.lang.String path)
getResourceURL
in class ViewHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |