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 javax.faces.application.ViewHandler

ViewHandler implementation for Facelets

Version:
$Id: FaceletViewHandler.java,v 1.49.2.6 2006/03/20 07:22:00 jhook Exp $
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 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(javax.faces.application.ViewHandler parent)
          Deprecated.  
 
Method Summary
protected  void buildView(javax.faces.context.FacesContext context, javax.faces.component.UIViewRoot viewToRender)
          Deprecated.  
 java.util.Locale calculateLocale(javax.faces.context.FacesContext context)
          Deprecated.  
 java.lang.String calculateRenderKitId(javax.faces.context.FacesContext context)
          Deprecated.  
protected  Compiler createCompiler()
          Deprecated.  
protected  FaceletFactory createFaceletFactory(Compiler c)
          Deprecated.  
protected  javax.faces.context.ResponseWriter createResponseWriter(javax.faces.context.FacesContext context)
          Deprecated.  
 javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context, java.lang.String viewId)
          Deprecated.  
 java.lang.String getActionURL(javax.faces.context.FacesContext context, java.lang.String viewId)
          Deprecated.  
 java.lang.String getDefaultSuffix(javax.faces.context.FacesContext context)
          Deprecated.  
protected  java.lang.String getRenderedViewId(javax.faces.context.FacesContext context, java.lang.String actionId)
          Deprecated.  
 java.lang.String getResourceURL(javax.faces.context.FacesContext context, java.lang.String path)
          Deprecated.  
protected  java.lang.String getResponseContentType(javax.faces.context.FacesContext context, java.lang.String orig)
          Deprecated. Generate the content type
protected  java.lang.String getResponseEncoding(javax.faces.context.FacesContext context, java.lang.String orig)
          Deprecated. Generate the encoding
protected  javax.faces.application.ViewHandler getWrapped()
          Deprecated.  
protected  void handleFaceletNotFound(javax.faces.context.FacesContext context, java.lang.String viewId)
          Deprecated.  
protected  void handleRenderException(javax.faces.context.FacesContext context, java.lang.Exception e)
          Deprecated.  
protected  void initialize(javax.faces.context.FacesContext context)
          Deprecated. Initialize the ViewHandler during its first request.
protected  void initializeCompiler(Compiler c)
          Deprecated.  
 void renderView(javax.faces.context.FacesContext context, javax.faces.component.UIViewRoot viewToRender)
          Deprecated.  
 javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context, java.lang.String viewId)
          Deprecated.  
 void writeState(javax.faces.context.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 java.util.logging.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 java.lang.String PARAM_REFRESH_PERIOD
Deprecated. 
See Also:
Constant Field Values

PARAM_REFRESH_PERIO

public static final java.lang.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 java.lang.String PARAM_SKIP_COMMENTS
Deprecated. 
See Also:
Constant Field Values

PARAM_VIEW_MAPPINGS

public static final java.lang.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 java.lang.String PARAM_LIBRARIES
Deprecated. 
See Also:
Constant Field Values

PARAM_DECORATORS

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

PARAM_DEVELOPMENT

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

PARAM_RESOURCE_RESOLVER

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

PARAM_BUILD_BEFORE_RESTORE

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

PARAM_BUFFER_SIZE

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

FaceletViewHandler

public FaceletViewHandler(javax.faces.application.ViewHandler parent)
Deprecated. 
Method Detail

initialize

protected void initialize(javax.faces.context.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 javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
                                                    java.lang.String viewId)
Deprecated. 
Specified by:
restoreView in class javax.faces.application.ViewHandler

getWrapped

protected javax.faces.application.ViewHandler getWrapped()
Deprecated. 

createResponseWriter

protected javax.faces.context.ResponseWriter createResponseWriter(javax.faces.context.FacesContext context)
                                                           throws java.io.IOException,
                                                                  javax.faces.FacesException
Deprecated. 
Throws:
java.io.IOException
javax.faces.FacesException

getResponseEncoding

protected java.lang.String getResponseEncoding(javax.faces.context.FacesContext context,
                                               java.lang.String orig)
Deprecated. 
Generate the encoding

Parameters:
context -
orig -
Returns:

getResponseContentType

protected java.lang.String getResponseContentType(javax.faces.context.FacesContext context,
                                                  java.lang.String orig)
Deprecated. 
Generate the content type

Parameters:
context -
orig -
Returns:

buildView

protected void buildView(javax.faces.context.FacesContext context,
                         javax.faces.component.UIViewRoot viewToRender)
                  throws java.io.IOException,
                         javax.faces.FacesException
Deprecated. 
Throws:
java.io.IOException
javax.faces.FacesException

renderView

public void renderView(javax.faces.context.FacesContext context,
                       javax.faces.component.UIViewRoot viewToRender)
                throws java.io.IOException,
                       javax.faces.FacesException
Deprecated. 
Specified by:
renderView in class javax.faces.application.ViewHandler
Throws:
java.io.IOException
javax.faces.FacesException

handleRenderException

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

handleFaceletNotFound

protected void handleFaceletNotFound(javax.faces.context.FacesContext context,
                                     java.lang.String viewId)
                              throws javax.faces.FacesException,
                                     java.io.IOException
Deprecated. 
Throws:
javax.faces.FacesException
java.io.IOException

getDefaultSuffix

public java.lang.String getDefaultSuffix(javax.faces.context.FacesContext context)
                                  throws javax.faces.FacesException
Deprecated. 
Throws:
javax.faces.FacesException

getRenderedViewId

protected java.lang.String getRenderedViewId(javax.faces.context.FacesContext context,
                                             java.lang.String actionId)
Deprecated. 

writeState

public void writeState(javax.faces.context.FacesContext context)
                throws java.io.IOException
Deprecated. 
Specified by:
writeState in class javax.faces.application.ViewHandler
Throws:
java.io.IOException

calculateLocale

public java.util.Locale calculateLocale(javax.faces.context.FacesContext context)
Deprecated. 
Specified by:
calculateLocale in class javax.faces.application.ViewHandler

calculateRenderKitId

public java.lang.String calculateRenderKitId(javax.faces.context.FacesContext context)
Deprecated. 
Specified by:
calculateRenderKitId in class javax.faces.application.ViewHandler

createView

public javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context,
                                                   java.lang.String viewId)
Deprecated. 
Specified by:
createView in class javax.faces.application.ViewHandler

getActionURL

public java.lang.String getActionURL(javax.faces.context.FacesContext context,
                                     java.lang.String viewId)
Deprecated. 
Specified by:
getActionURL in class javax.faces.application.ViewHandler

getResourceURL

public java.lang.String getResourceURL(javax.faces.context.FacesContext context,
                                       java.lang.String path)
Deprecated. 
Specified by:
getResourceURL in class javax.faces.application.ViewHandler


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