title: p:fileUpload method not fired
body: <p>I have a form with a p:fileUpload, and when I submit the form, all methods are not fired</p>
  
  <p>This is my xhtml : </p>
  
  <pre><code>&lt;h:form enctype="multipart/form-data"&gt;
            &lt;p:messages id="messages" showDetail="true"/&gt;
            &lt;p:fileUpload value="#{uploadBean.file}" mode="simple" id="fileUploadId"/&gt;
            &lt;p:commandButton value="Envoyer ce fichier" process="@form" update="messages fileUploadId" actionListener="#{uploadBean.upload}"/&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>my bean : </p>
  
  <pre><code>public void setFile(final UploadedFile file)
    {
      System.out.println("Dans le setFile");
      this.file = file;
    }
  
    public void upload()
    {
      System.out.println("Dans le upload");
      System.out.println("Fichier : " + file.getFileName());
      FacesContext.getCurrentInstance().addMessage(null, msg);
    }
  </code></pre>
  
  <p>my web.xml : </p>
  
  <pre><code>&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;
  </code></pre>
  
  <p>In the trace, I have just : </p>
  
  <pre><code>Infos: Dans le upload
  Grave: Réception de «java.lang.NullPointerException» lors de l’invocation du listener d’action «#{uploadBean.upload}» du composant «j_idt11»
  Grave: java.lang.NullPointerException
  </code></pre>
  
  <p>The method setFile() is not call...</p>
  
  <p>Thanks</p>
  
  <p>edit : 
  All the code of my bean : </p>
  
  <pre><code>import java.io.Serializable;
  
  import javax.faces.application.FacesMessage;
  import javax.faces.bean.ManagedBean;
  import javax.faces.bean.ViewScoped;
  import javax.faces.context.FacesContext;
  
  import org.primefaces.event.FileUploadEvent;
  import org.primefaces.model.UploadedFile;
  
  @ManagedBean
  @ViewScoped
  public class UploadBean implements Serializable
  {
    /**
     * 
     */
    private static final long serialVersionUID = 556636819990963651L;
  
    private UploadedFile      file;
  
    public UploadedFile getFile()
    {
      System.out.println("Dans le getFile");
      return file;
    }
  
    public void setFile(final UploadedFile file)
    {
      System.out.println("Dans le setFile");
      this.file = file;
    }
  
    public void upload()
    {
      System.out.println("Dans le upload");
      // System.out.println("Fichier : " + file.getFileName());
  
      FacesMessage msg;
      if (file == null)
      {
        msg = new FacesMessage(FacesMessage.SEVERITY_WARN, "Raté ! ", "Le fichier vaut null.");
        System.out.println("la variable file : null");
      }
      else
      {
        msg = new FacesMessage("Ouép ! ", file.getFileName() + " is uploaded.");
        System.out.println("Le nom du fichier uploader est : " + file.getFileName());
      }
      FacesContext.getCurrentInstance().addMessage(null, msg);
    }
  }
  </code></pre>