Found this link from when we had this same discussion last year. Not
Stripes-specific, but might work.
http://www.telio.be/blog/2006/01/06/ajax-upload-progress-monitor-for-commons-fileupload-example/
-Ben
Gregg Bolinger wrote:
I've got the code I used but it is a mess. The problem with making
something like this part of Stripes core is that it requires a small
amount of javascript for the ajax calls. Since Stripes doesn't concern
itself with client side junk it would be difficult to determine what
might go into the core. Not to mention everyone has their own favorite
javascript library that might tackle the client side aspect of the problem.
As far as a "plugin" that might make more sense. I might take some time
and try and cleanup what I have and see what really belongs where.
Oddly enough, the hardest part was getting the CSS right to move a
progress bar, if I remember correctly. That and testing it. Things
happen so quick locally its hard to tell if it worked or not. :)
g-regg
Newman, John W wrote:
I'll be facing the same task in a few weeks. If you google for 'file upload
progress ajax java' it looks like there's a few decent solutions out there. If
someone tackles this problem for stripes I think it at least deserves an entry
on the wiki so we aren't all running around duplicating our efforts for a
common task. This could even be something to make its way into the core or
better yet as a plugin.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gregg Bolinger
Sent: Monday, April 21, 2008 2:27 PM
To: Stripes Users List
Subject: Re: [Stripes-users] FileUpload any events available during upload?
I implemented fileupload with a progress bar using Stripes and
commons-fileupload but with a tweaked upload request wrapper.
Unfortunately it was for a previous contract and I don't know if I can
come by the code. But I'll see what I Can do. :)
Gregg
Zenin, Ruslan wrote:
Thank you Leonard! I've seen that thread and tried an example. However it waits
predefined amount of time...which is not known when you upload file(s)...so the
progress bar would not be possible to implement this way (unless it is a bogus
one ;). I guess I'd have to wait for upload events support in Stripes or try to
mess-up with commons-fileupload...
Best regards,
Ruslan
________________________________
From: [EMAIL PROTECTED] on behalf of Leonard Gestrin
Sent: Mon 4/21/2008 12:11 PM
To: Stripes Users List
Subject: Re: [Stripes-users] FileUpload any events available during upload?
Some time ago Aaron Porter sent a sample code demonstrating how to add
support for any event of any action to be able to show interim page if
action takes more than preconfigured time.
I started with sample code and it did work for most the cases. However,
I got side tracked, so I never finished the whole evaluation - it is
still on my back burner.
I am not sure if it also would work for file uploads, but it might worth
a shot.
The thread title is 'actions that take long time' in case original
attachment does not go through.
Leonard
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zenin,
Ruslan
Sent: Monday, April 21, 2008 7:40 AM
To: [email protected]
Subject: [Stripes-users] FileUpload any events available during upload?
Hello all,
Is there any callback events available for Stripes file upload? I'd like
to show a progress of the large uploads (big files that are uploaded via
slow connection).
I've seen some websites that show pretty nice upload progress via AJAX
div tag...
In Stripes, FileBean becomes available only when upload is
finished...therefore if file takes 5 min to upload...I'd not have a
chance to provide user in the browser with the progress of the upload
(e.g.% uploaded so far, estimated time to finish upload, avg. speed,
etc.)
Perhaps I'm missing something and callback events for file upload
already exists...or may be there is another way...
Any ideas/suggestions?
Best regards,
Ruslan
************************************************************************
***************************
The information in this email is confidential and may be legally
privileged. Access to this email by anyone other than the intended
addressee is unauthorized. If you are not the intended recipient of this
message, any review, disclosure, copying, distribution, retention, or
any action taken or omitted to be taken in reliance on it is prohibited
and may be unlawful. If you are not the intended recipient, please reply
to or forward a copy of this message to the sender and delete the
message, any attachments, and any copies thereof from your system.
************************************************************************
***************************
------------------------------------------------------------------------
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j
avaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
***************************************************************************************************
The information in this email is confidential and may be legally privileged.
Access to this email by anyone other than the intended addressee is
unauthorized. If you are not the intended recipient of this message, any
review, disclosure, copying, distribution, retention, or any action taken or
omitted to be taken in reliance on it is prohibited and may be unlawful. If you
are not the intended recipient, please reply to or forward a copy of this
message to the sender and delete the message, any attachments, and any copies
thereof from your system.
***************************************************************************************************
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users