title: How to set file limit for FileUpload in Java
body: <p>I am using Primefaces' FileUpload. Can't figure out how to set FileLimit property from Java. There are no setFileLimit function, but in xhtml this property is accessible (<a href="http://www.primefaces.org/showcase/ui/fileUploadMultiple.jsf" rel="nofollow">Primefaces Upload Example</a>)</p>
  
  <pre><code>FileUpload filenameCreateInput = (FileUpload)
     application.createComponent(FileUpload.COMPONENT_TYPE);
  ...
  //filenameCreateInput.setFileLimit(3);
  </code></pre>