<p:fileUpload> PrimeFaces handleFileUpload method not called solution


If you encounter this problem, you need to apply the following steps (2 Steps),

First of all, the following jars must be downloaded as they are required by the Primefaces fileupload component,

commons-fileupload (latest version) http://commons.apache.org/fileupload/
commons-io (latest version) http://commons.apache.org/io/download_io.cgi

Also the following filter should be defined inside web.xml file;

<filter>
   <filter-name>PrimeFaces FileUpload Filter</filter-name>
   <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
</filter>

<filter-mapping>
   <filter-name>PrimeFaces FileUpload Filter</filter-name>
   <servlet-name>Faces Servlet</servlet-name>
</filter-mapping>

Advertisements

4 thoughts on “<p:fileUpload> PrimeFaces handleFileUpload method not called solution

  1. Hi Tuna,

    Those steps are mandatory, but not sufficient. I am currently researching this problem in my project and will post my findings (if any 🙂 ).

    Regards,
    Andy.
    (JBoss 6, Mojarra 2.1.4, Primefaces 3.2, Prettyfaces 3.3.3, Seam 3.1)

  2. I will post more details regarding this post tomorrow, I have tried and it is working… It is better for you to check this post tomorrow again

    Regards,
    Tuna

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s