title: Primefaces (3.5) FileUpload Component Cannot Update Uploaded Filename to OutputText Component
body: <p>Hi there im using netbeans IDE 7.2, primefaces 3.5, glassfish server 3.1.2, mojarra 2.1.6.</p>
  
  <p>Im using an outputText component to display the name of the uploaded file after uploading. But the outputText component was never updated to display the file name. Pleas help.</p>
  
  <p>Im having this xhtml page: </p>
  
  <pre><code>&lt;h:form enctype="multipart/form-data"&gt;
     &lt;p:ajaxStatus&gt;
         &lt;f:facet name="start"&gt;
             &lt;h:graphicImage value="images/loading.gif" /&gt;
         &lt;/f:facet&gt;
         &lt;f:facet name="complete"&gt;
          &lt;h:outputText value="" /&gt;
         &lt;/f:facet&gt;
     &lt;/p:ajaxStatus&gt;
     &lt;h:outputText value="#{bundle.AttachmentLabel}"/&gt;
     &lt;p:fileUpload fileUploadListener="#{testingPage.handleFileUpload}"
                   allowTypes="/(\.|\/)(doc|docx|ppt|pptx|xls|xlsx|pdf)$/"
                   update="attachmentname"/&gt; 
     &lt;h:outputText value="#{bundle.AttachmentLabel} #{bundle.YangLabel} #{bundle.AlreadyLabel} #{bundle.UploadedLabel}"/&gt;
     &lt;h:outputText id="attachmentname" value="{testingPage.attachmentfilename}"/&gt;                            
  &lt;/h:form&gt;
  </code></pre>
  
  <p>And this is my ViewScoped backing bean's handleFileUpload listener:</p>
  
  <pre><code>public void handleFileUpload(FileUploadEvent event) {
  try {
         LogController.log.info("Assign attachment variable to event file property");
         attachment = event.getFile();
         LogController.log.info("Assign attachment byte to attachment contents");
         attachmentbyte = attachment.getContents();
         LogController.log.info("Assign attachment file name to attachment file name");
         attachmentfilename = attachment.getFileName();
      } catch (Exception ex) {
         LogController.log.fatal(ex.toString());
      }
  }
  </code></pre>
  
  <p>What could be wrong? The primefaces showcase is working perfectly. Please help. Thank you.</p>