title: Primefaces FileUpload error remains even after correct upload
body: <p>I am using primefaces3.5 fileupload control.  When I upload a wrong format file then it shows a error message "Wrong format etc".  After that when I upload a correct format file then it uploads fine but does not remove the error message.<br>While searching I found <a href="http://forum.primefaces.org/viewtopic.php?f=3&amp;t=23853" rel="nofollow">this solution</a> on primefaces forum but it is also not working.</p>
  
  <p>How can I remove the error message on subsequent uploads?</p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;p:fileUpload id="fu"
      allowTypes="/(\.|\/)(DOC|DOCX|doc|docx|ppt|pptx|xls|xlsx|pdf)$/"
      onstart="loadingCursor();" oncomplete="simpleCursor();"
      multiple="false" mode="advanced" sizeLimit="52428800"
      showButtons="false"
      fileUploadListener="#{documentInsertController.uploadPListener}"
      label="Browse"
      invalidSizeMessage="File size exceeds limit 45 MB "
      value="#{documentInsertController.file}" auto="true"
      invalidFileMessage="Invalid file type.Only doc,ppt,xls and pdf files allowed."
      &gt;
      &lt;h:message id="docMSG" for="fu"&gt;&lt;/h:message&gt;
  &lt;/p:fileUpload&gt;
  </code></pre>