org.apache.myfaces.view.facelets
Class FaceletViewHandler

java.lang.Object
  extended by javax.faces.application.ViewHandler
      extended by org.apache.myfaces.view.facelets.FaceletViewHandler

Deprecated. code refactored to FaceletViewDeclarationLanguage

@Deprecated
public class FaceletViewHandler
extends ViewHandler

ViewHandler implementation for Facelets

Version:
$Id: FaceletViewHandler.java 1300254 2012-03-13 17:38:40Z lu4242 $
Author:
Jacob Hookom

Nested Class Summary
protected static class FaceletViewHandler.NullWriter
          Deprecated.  
 
Field Summary
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.
 
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.  
 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.  
 
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

log

protected static final Logger log
Deprecated. 

DEFAULT_REFRESH_PERIOD

public static final long DEFAULT_REFRESH_PERIOD
Deprecated. 
See Also:
Constant Field Values

DEFAULT_REFRESH_PERIOD_PRODUCTION

public static final long DEFAULT_REFRESH_PERIOD_PRODUCTION
Deprecated. 
See Also:
Constant Field Values

PARAM_REFRESH_PERIOD

public static final String PARAM_REFRESH_PERIOD
Deprecated. 
See Also:
Constant Field Values

PARAM_REFRESH_PERIO

public static final String PARAM_REFRESH_PERIO
Deprecated. 
Spelling error, We'll remove this in a future release.

See Also:
Constant Field Values

PARAM_SKIP_COMMENTS

public static final String PARAM_SKIP_COMMENTS
Deprecated. 
See Also:
Constant Field Values

PARAM_VIEW_MAPPINGS

public static final String PARAM_VIEW_MAPPINGS
Deprecated. 
Context initialization parameter for defining what viewIds should be handled by Facelets, and what should not. When left unset, all URLs will be handled by Facelets. When set, it must be a semicolon separated list of either extension mappings or prefix mappings. For example:
 
 
 
        <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).

See Also:
Constant Field Values

PARAM_LIBRARIES

public static final String PARAM_LIBRARIES
Deprecated. 
See Also:
Constant Field Values

PARAM_DECORATORS

public static final String PARAM_DECORATORS
Deprecated. 
See Also:
Constant Field Values

PARAM_DEVELOPMENT

public static final String PARAM_DEVELOPMENT
Deprecated. 
See Also:
Constant Field Values

PARAM_RESOURCE_RESOLVER

public static final String PARAM_RESOURCE_RESOLVER
Deprecated. 
See Also:
Constant Field Values

PARAM_BUILD_BEFORE_RESTORE

public static final String PARAM_BUILD_BEFORE_RESTORE
Deprecated. 
See Also:
Constant Field Values

PARAM_BUFFER_SIZE

public static final String PARAM_BUFFER_SIZE
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

FaceletViewHandler

public FaceletViewHandler(ViewHandler parent)
Deprecated. 
Method Detail

initialize

protected void initialize(FacesContext context)
Deprecated. 
Initialize the ViewHandler during its first request.


createFaceletFactory

protected FaceletFactory createFaceletFactory(Compiler c)
Deprecated. 

createCompiler

protected Compiler createCompiler()
Deprecated. 

initializeCompiler

protected void initializeCompiler(Compiler c)
Deprecated. 

restoreView

public UIViewRoot restoreView(FacesContext context,
                              String viewId)
Deprecated. 
Specified by:
restoreView in class ViewHandler

getWrapped

protected ViewHandler getWrapped()
Deprecated. 

createResponseWriter

protected ResponseWriter createResponseWriter(FacesContext context)
                                       throws IOException,
                                              FacesException
Deprecated. 
Throws:
IOException
FacesException

getResponseEncoding

protected String getResponseEncoding(FacesContext context,
                                     String orig)
Deprecated. 
Generate the encoding

Parameters:
context -
orig -
Returns:

getResponseContentType

protected String getResponseContentType(FacesContext context,
                                        String orig)
Deprecated. 
Generate the content type

Parameters:
context -
orig -
Returns:

buildView

protected void buildView(FacesContext context,
                         UIViewRoot viewToRender)
                  throws IOException,
                         FacesException
Deprecated. 
Throws:
IOException
FacesException

renderView

public void renderView(FacesContext context,
                       UIViewRoot viewToRender)
                throws IOException,
                       FacesException
Deprecated. 
Specified by:
renderView in class ViewHandler
Throws:
IOException
FacesException

handleRenderException

protected void handleRenderException(FacesContext context,
                                     Exception e)
                              throws IOException,
                                     javax.el.ELException,
                                     FacesException
Deprecated. 
Throws:
IOException
javax.el.ELException
FacesException

handleFaceletNotFound

protected void handleFaceletNotFound(FacesContext context,
                                     String viewId)
                              throws FacesException,
                                     IOException
Deprecated. 
Throws:
FacesException
IOException

getDefaultSuffix

public String getDefaultSuffix(FacesContext context)
                        throws FacesException
Deprecated. 
Throws:
FacesException

getRenderedViewId

protected String getRenderedViewId(FacesContext context,
                                   String actionId)
Deprecated. 

writeState

public void writeState(FacesContext context)
                throws IOException
Deprecated. 
Specified by:
writeState in class ViewHandler
Throws:
IOException

calculateLocale

public Locale calculateLocale(FacesContext context)
Deprecated. 
Specified by:
calculateLocale in class ViewHandler

calculateRenderKitId

public String calculateRenderKitId(FacesContext context)
Deprecated. 
Specified by:
calculateRenderKitId in class ViewHandler

createView

public UIViewRoot createView(FacesContext context,
                             String viewId)
Deprecated. 
Specified by:
createView in class ViewHandler

getActionURL

public String getActionURL(FacesContext context,
                           String viewId)
Deprecated. 
Specified by:
getActionURL in class ViewHandler

getResourceURL

public String getResourceURL(FacesContext context,
                             String path)
Deprecated. 
Specified by:
getResourceURL in class ViewHandler


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.