org.apache.myfaces.webapp.filter
Class TomahawkFacesContextFactory

java.lang.Object
  extended by javax.faces.context.FacesContextFactory
      extended by org.apache.myfaces.webapp.filter.TomahawkFacesContextFactory

public class TomahawkFacesContextFactory
extends javax.faces.context.FacesContextFactory

The objective of this factory is this:

  1. Wrap a multipart request (used for t:inputFileUpload), so the request could be correctly decoded.
  2. If a buffered instance of AddResource is configured, ExtensionsFilter must buffer and add the resource reference to the head of jsf pages (for example when it is used DefaultAddResource)

Since:
1.1.7
Version:
$Revision: 697311 $ $Date: 2008-09-19 20:14:01 -0500 (Fri, 19 Sep 2008) $
Author:
Martin Marinschek (latest modification by $Author: lu4242 $)

Field Summary
static String DISABLE_TOMAHAWK_FACES_CONTEXT_WRAPPER
          Disable or enable this factory to wrap the request using TomahawkFacesContextWrapper as an alternative to ExtensionsFilter.
static boolean DISABLE_TOMAHAWK_FACES_CONTEXT_WRAPPER_DEFAULT
           
 
Constructor Summary
TomahawkFacesContextFactory(javax.faces.context.FacesContextFactory delegate)
           
 
Method Summary
 javax.faces.context.FacesContext getFacesContext(Object context, Object request, Object response, javax.faces.lifecycle.Lifecycle lifecycle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISABLE_TOMAHAWK_FACES_CONTEXT_WRAPPER

public static final String DISABLE_TOMAHAWK_FACES_CONTEXT_WRAPPER
Disable or enable this factory to wrap the request using TomahawkFacesContextWrapper as an alternative to ExtensionsFilter. If ExtensionsFilter is configured, use of TomahawkFacesContextWrapper is skipped

See Also:
Constant Field Values

DISABLE_TOMAHAWK_FACES_CONTEXT_WRAPPER_DEFAULT

public static final boolean DISABLE_TOMAHAWK_FACES_CONTEXT_WRAPPER_DEFAULT
See Also:
Constant Field Values
Constructor Detail

TomahawkFacesContextFactory

public TomahawkFacesContextFactory(javax.faces.context.FacesContextFactory delegate)
Method Detail

getFacesContext

public javax.faces.context.FacesContext getFacesContext(Object context,
                                                        Object request,
                                                        Object response,
                                                        javax.faces.lifecycle.Lifecycle lifecycle)
                                                 throws javax.faces.FacesException
Specified by:
getFacesContext in class javax.faces.context.FacesContextFactory
Throws:
javax.faces.FacesException


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