org.apache.myfaces.tobago.fileupload
Class FileUploadFacesContextFactoryImpl

java.lang.Object
  extended by javax.faces.context.FacesContextFactory
      extended by org.apache.myfaces.tobago.fileupload.FileUploadFacesContextFactoryImpl

public class FileUploadFacesContextFactoryImpl
extends FacesContextFactory

This FacesContextFactory handles multipart request. Add the tobago-fileupload.jar to your web application. Configuration:

    <env-entry>
      <description>Set the size limit for uploaded files. Default value is 1 MB.
        Format: 10 = 10 bytes
        10k = 10 KB
        10m = 10 MB
        1g = 1 GB
      </description>
      <env-entry-name>uploadMaxFileSize</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>20m</env-entry-value>
    </env-entry>
    <env-entry>
      <description>Set the upload repository path for uploaded files.
             Default value is java.io.tmpdir.</description>
      <env-entry-name>uploadRepositoryPath</env-entry-name>
      <env-entry-type>java.lang.String</env-entry-type>
      <env-entry-value>/tmp</env-entry-value>
    </env-entry>
 


Constructor Summary
FileUploadFacesContextFactoryImpl(FacesContextFactory facesContextFactory)
           
 
Method Summary
 FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUploadFacesContextFactoryImpl

public FileUploadFacesContextFactoryImpl(FacesContextFactory facesContextFactory)
Method Detail

getFacesContext

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


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.