-
1. Re: s:fileupload and a4j
stu2 Jun 6, 2007 11:40 AM (in response to hispeedsurfer)Well the idea behind a4j is to asynchronously issue xml get requests, and update the page without doing a page refresh.
file updload is, by definition, post-based. The whole form is submitted as a specially encode post, as per the http spec. -
2. Re: s:fileupload and a4j
timeout Jan 30, 2008 8:12 AM (in response to hispeedsurfer)I'm running into this as well. The problem being, if you upload a large file, then it takes time for the upload to complete. It would be nice to be able to update a progress bar (or some other indication) so the user could see that it is indeed transferring the data.
Sean -
3. Re: s:fileupload and a4j
kasim Jan 30, 2008 9:47 AM (in response to hispeedsurfer)
Not sure if it will work but couldnt you insert this in there -<a4j:status> <f:facet name="start"> <h:graphicImage value="/img/spinner.gif"/> </f:facet> </a4j:status>
... as far as i have seen that should then progress until it's complete. -
4. Re: s:fileupload and a4j
ericjava Jan 30, 2008 11:34 AM (in response to hispeedsurfer)Uploads are a tricky thing. One way to do them is to use an iframe for the upload, which can then update its parent frame. The other, better way is to use an applet.
The big advantages of an applet is it allows file browsing and previewing, and allows the upload to happen without needing to do a post, and doesn't require any type of multi-part submission (these are sometimes buggy).
I'm exploring both of these, and if I can get a suitable applet going I might create that as a JSF / Facelets tag and post it. -
5. Re: s:fileupload and a4j
mars1412 Feb 4, 2008 5:36 AM (in response to hispeedsurfer)FYI: there are already a lot of upload applets out there
some R open-source: e.g. jupload, postlet
some R commercial ones: e.g. aurigma image uploader