Among other new components and features available in ADF 11g PS6 - there is one very important. File Upload ADF Faces component was upgraded to support multiple or basically infinite file upload. This is good to see how ADF framework is progressing with each new release, this is another argument why you should use ADF.
I was using sample application - MultipleFileUpload.zip, to test how multiple file upload works. You drag and drop regular ADF Faces input file component:
There is option to set number of rows (number of files in other words) to be rendered by input file component (this number can be changed dynamically on runtime):
Another property that must be set - MaximumFiles. With this property you can specify maximum number of files to be uploaded at once (also can be changed dynamically on runtime):
This is about UI part. Now how to handle multiple files and how to get Input Stream. You can create Action Listener for Upload button and handle multiple files input from such listener:
Important part - if you plan to allow multiple files upload, you should bind ADF Faces input file component the List. In such way, we have access to collection of files user is uploading:
Lastly don't forget to set UsesUpload=true property as usual for the container JSF page on af:form tag:
Set UsesUpload=true property for af:form:
Here how it looks on ADF UI - multiple files are submitted to be uploaded (even file upload progress bar is rendered while file is being loaded):
Status on the server informs about successful multiple files upload:
I was using sample application - MultipleFileUpload.zip, to test how multiple file upload works. You drag and drop regular ADF Faces input file component:
There is option to set number of rows (number of files in other words) to be rendered by input file component (this number can be changed dynamically on runtime):
Another property that must be set - MaximumFiles. With this property you can specify maximum number of files to be uploaded at once (also can be changed dynamically on runtime):
This is about UI part. Now how to handle multiple files and how to get Input Stream. You can create Action Listener for Upload button and handle multiple files input from such listener:
Important part - if you plan to allow multiple files upload, you should bind ADF Faces input file component the List
Lastly don't forget to set UsesUpload=true property as usual for the container JSF page on af:form tag:
Set UsesUpload=true property for af:form:
Here how it looks on ADF UI - multiple files are submitted to be uploaded (even file upload progress bar is rendered while file is being loaded):
Status on the server informs about successful multiple files upload:















































