title: Primefaces file uploader doesn't call the handler method
body: <p>I have a problem with primefaces file uploader, when the uploading finish the handler method in the <code>fileUploadListener</code> doesn't called i placed a break point in the method start and the execution proceeds normally as it's not exists, there are no exceptions occurred:</p>
  
  <p>this is my file uploader:</p>
  
  <pre><code>                   &lt;h:form enctype="multipart/form-data"&gt;
                      &lt;p:fileUpload fileUploadListener="#{fileUploadController.handleFileUpload}"
                          mode="advanced" update="messages" sizeLimit="100000"
                          allowTypes="/(\.|\/)(gif|jpe?g|png)$/"
                          &lt;h:message style="color:red;margin:8px;"/&gt;
                         &lt;p:growl id="messages" showDetail="true" /&gt;
                      &lt;/h:form&gt;
  </code></pre>
  
  <p>and this is the handler:</p>
  
  <pre><code>@ManagedBean(name="fileUploadController")
  @SessionScoped
  public class FileUploadController {  
  
  public void handleFileUpload(FileUploadEvent event) {  
      FacesMessage msg = new FacesMessage("Succesful", event.getFile().getFileName() + " is uploaded.");  
      FacesContext.getCurrentInstance().addMessage(null, msg);  
       }  
  }
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns="http://java.sun.com/xml/ns/javaee"  xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
  id="WebApp_ID" version="3.0"&gt;
  &lt;display-name&gt;Ga&lt;/display-name&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;pages/HomePage.jsf&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  &lt;filter&gt;
      &lt;filter-name&gt;PrimeFaces FileUpload Filter&lt;/filter-name&gt;
      &lt;filter-class&gt;org.primefaces.webapp.filter.FileUploadFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;PrimeFaces FileUpload Filter&lt;/filter-name&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
  &lt;/filter-mapping&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;PrimeFaces FileUpload Filter&lt;/filter-name&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
  &lt;/filter-mapping&gt;
  &lt;servlet&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;context-param&gt;
      &lt;description&gt;State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2&lt;/description&gt;
      &lt;param-name&gt;javax.faces.STATE_SAVING_METHOD&lt;/param-name&gt;
      &lt;param-value&gt;client&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;javax.servlet.jsp.jstl.fmt.localizationContext&lt;/param-name&gt;
      &lt;param-value&gt;resources.application&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;com.sun.faces.config.ConfigureListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  </code></pre>
  
  <p></p>