This content has been marked as final.
Show 3 replies
-
1. Re: rich:fileUpload on form submit
angel.ivanov Jul 30, 2008 1:11 AM (in response to angel.ivanov)Please give me a solution. How to upload files with rich:fileUpload on form submit? It is urgent.
-
2. Re: rich:fileUpload on form submit
andrei_exadel Jul 30, 2008 5:07 AM (in response to angel.ivanov)Hi.
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. -
3. Re: rich:fileUpload on form submit
angel.ivanov Jul 30, 2008 8:00 AM (in response to angel.ivanov)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.