Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Tomasz Dziurko
You should check visural-wicket project (http://code.google.com/p/visural-wicket/) and live demo on http://visural-wicket-examples.appspot.com/app/ . In submitters there are some fancy looking waiting popup messages which could help. -- Best Regards / Pozdrawiam, Tomasz Dziurko

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Thanks for all the hints so far, they are really helpful but ;) Well, I don't want to have busy indicators on different components, I'm looking for a way to display status messages (like eg with jGrowl) during the long-running process (triggered by AjaxButton). I guess the only way to

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Alex Objelean
: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/How-to-give-feedback-in-long-running-operation-within-AjaxButton.onSubmit%28%29--tp28182827p28188414.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Ok, but this is *not* what I want to achieve, beggin' your pardon ;-) The first messages should not display when starting the operation, but when a certain sub-task is finished. Say, I iterate over a list in the operation, and after each cycle I'd like to display a jGrowl message ... -Tom

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Alex Objelean
in context: http://old.nabble.com/How-to-give-feedback-in-long-running-operation-within-AjaxButton.onSubmit%28%29--tp28182827p28188512.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Ernesto Reinaldo Barreiro
Hi Tom, What I do, for instance, when exporting files to PDF, Excel, etc, is start the process on a background thread, block the screen so that users can only wait or stop the process, and use an AJAX timer to get back to the server every few seconds to monitor the progress and display it as

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Hi Ernesto, this sounds like a viable solution, I'd be glad if you could provide me with some more details (e.g. code samples, if available). -Tom Am 09.04.2010 09:39, schrieb Ernesto Reinaldo Barreiro: Hi Tom, What I do, for instance, when exporting files to PDF, Excel, etc, is start

RE: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Tim L Casey
, 2010 12:44 AM To: users@wicket.apache.org Subject: Re: How to give feedback in long-running operation within AjaxButton.onSubmit()? Hi Ernesto, this sounds like a viable solution, I'd be glad if you could provide me with some more details (e.g. code samples, if available). -Tom Am 09.04.2010

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
To: users@wicket.apache.org Subject: Re: How to give feedback in long-running operation within AjaxButton.onSubmit()? Hi Ernesto, this sounds like a viable solution, I'd be glad if you could provide me with some more details (e.g. code samples, if available). -Tom Am 09.04.2010 09:39

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Ernesto Reinaldo Barreiro
Hi Tom, Take a look at [1]...[4]. There I'm creating a thread each time the long running process is launched but maybe it would be more correct to use a thread pool or use scheduler like quartz for this task. Feel free to use/change the code there as it best suits your needs. Ernesto

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Thanks! -Tom Am 09.04.2010 10:55, schrieb Ernesto Reinaldo Barreiro: Hi Tom, Take a look at [1]...[4]. There I'm creating a thread each time the long running process is launched but maybe it would be more correct to use a thread pool or use scheduler like quartz for this task. Feel free

How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-08 Thread Thomas Götz
Problem: I have an AjaxButton that triggers a long-running operation when clicked. I want to give feedback (in form of a javascript message) upon partial completion of the operation, therefore I am using a jQuery notifications plugin (http://www.programmingmind.com/contributions). So, what I

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-08 Thread Fernando Wermus
Does this resolve your problem? @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { private static final long serialVersionUID = 1L; @Override public CharSequence decorateScript(CharSequence script) { return YOUR JAVASCRIPT +

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-08 Thread Thomas Götz
I fear not. As far as I understand, getAjaxCallDecorator() decorates the javascript with a custom script, which is executed immediately upon hitting the button. What I want to achieve is displaying some status messaged during the progress of my long-term operation ... -Tom On 08.04.2010

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-08 Thread Nishant Neeraj
I think you may look into this package org.apache.wicket.extensions.ajax.markup.html.form.upload where upload progress-bar is implemented. You may do something like this. So, probably it sets a resource in session, Java part regularly updates the string resource. And JS keeps on polling this

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-08 Thread Alex Objelean
-- View this message in context: http://old.nabble.com/How-to-give-feedback-in-long-running-operation-within-AjaxButton.onSubmit%28%29--tp28182827p28184788.html Sent from the Wicket - User mailing list archive at Nabble.com