Hi
I would just use DWR FileTransfer and the progress bars it provides. Take a look at IWebMvc if you need some help.
Regards,
On Fri, Apr 18, 2008 at 9:37 PM, ddduuu <
davidkdu@...> wrote:
Hi, all,
I have fileupload webapp with progress bar, I upload the file through Ext
ajax call to a servlet, which transfers file with commons-fileupload
library, I have a dwr call to retrieve the upload status from server side
with a callback function to update the progress bar, it works great when I
set activeReverseAjaxEnabled to false, but when I set it to true, the dwr
call will always come back to call the callback javascript function after
the servlet returns and upload is already done at that point, so the
progress bar does not show any progress at all.
I am not sure why the ReverseAjax prevented my dwr function from being
called immediately. I checked my log file, the DWR call getUploadInfo() is
called after the servlet is returned all the time. but if I set the
activeReverseAjaxEnabled to false, the DWR call getUploadInfo() will be
called before servlet doPost is done.
Anybody has any clue about this issue?
Thanks in advance.
Dave
--
View this message in context: http://www.nabble.com/When-activeReverseAjaxEnabled-is-true%2C-long-time-delay-for-java-call-tp16764605p16764605.html
Sent from the DWR - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...