title: Fileupload of PrimeFaces is not working in my liferay portlet?
body: <p>I am using primefaces 3.3.1 and liferay 6.</p>
  
  <p>In my portlet I want to add fileUpload for primefaces. But each time whenever my page loads this primefaces component is not visible through firebug. I need to make its display to block.</p>
  
  <p>Also, any components below the fileUpload which consists of javascript method or ajax is not working.</p>
  
  <p>I have noticed that in firebug whenever my page loads it shows me one error such as</p>
  
  <pre><code>this.form.fileUpload is not a function
  </code></pre>
  
  <p>I guess due to this error my fileUpload is not working. But I am not able to to fix it.</p>
  
  <pre><code>&lt;p:fileUpload fileUploadListener="#{fileUploadController.handleFileUpload}" mode="advanced" fileLimit="3"/&gt;
  </code></pre>