Hi,

I think it's possible even though I didn't try myself.

The trick is to use the "path" attribute to return some content to Ajax to 
indicate that the event is currently being executed.
This path should also return validation errors so that your Ajax code can 
update the page and show the errors to your user.

Then, you can use some Ajax-updater function using "ajax" attribute to record 
the progression and load the page once the job is complete.

So follow the example to start.
http://www.stripesframework.org/display/stripes/Wait+Page+for+Long+Events
Sections:
-         Simple example

-         Wait page with an AJAX updater

You'll have to modify the index.jsp page to include some Javascript code to 
submit the form and follow the action bean.

Christian

De : Adam Stokar [mailto:ajsto...@gmail.com]
Envoyé : May-17-12 9:28 PM
À : Stripes Users List
Objet : [Stripes-users] @WaitPage pure AJAX

Hi all,

I have an ActionBean with a method that sends 1000+ personalized emails.  I 
would like to use the wait page functionality to show the progress as it could 
take some time.  Is there anyway to do this without going to an explicit 'wait 
page' first?  I'd like the user to stay on the page they are on and use a 
loading overlay showing the progress of the request.  I'm not 100% sure how 
this plugin works so any information is helpful.

Thanks!

Adam
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to