Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

File upload with progress bar

843844May 20 2008 — edited Jul 13 2010
Hi All,

I know this is not exactly a JSF question�

Since JSF (My Faces & Tomahawk) still doesn't have an upload with progress bar, I made some workaround of my own.
I put iframe inside a JSF form. In that Iframe there is only file upload field, submit button and another iframe.
The first iframe is not to "disturb" JSF form when doing the upload operation and the second one is to prevent from the inner iframe to be
Refreshed when upload is finished (the "target" of the form is the inner iframe).
For the upload I have downloaded some upload with progress example from the internet.
Now this is the part in which I have problem:
It seems like first the entire file is being uploaded to the server, and only then all the events triggering the progress information are activated.
The upload operation is using apache commons file upload with it also used by MyFaces extensions filter.
Is it possible that there is some configuration in the myFaces parameters or filter that cause this weird behavior?

Thanks,
Guy.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 10 2010
Added on May 20 2008
11 comments
1,064 views