Please give me a solution. How to upload files with rich:fileUpload on form submit? It is urgent.
You can use JS API. Try $('fileUploadId').component.upload() or component control. This method starts uploading process likes you clicked on upload button.
You can invoke this method when submit button has been clicked.
Anyway when you click UPLOAD all form's data goes to server. So you can use UPLOAD instead of usual submit.
Thank you for the reply.
That works, but only for the first file. If I choose more than one file fileUploadListener is invoked first for the first file and again for the second file but after the method which is bind for my submit button.