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
The IAjaxIndicatorAware interface fits perfectly with your need. All you have do, is: - create a DOM element which looks like jGrowl with 'loading' message and assign it an id (ex: id=ajaxIndicator) - your webPage should implement IAjaxIndicatorAware interface: public class MyWebPage extends

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
Oh, I see... I got you wrong initially. Indeed, in this case.. the best solution is polling and upon subtask completion - output a jgrowl notification script. Alex Thomas Götz wrote: Ok, but this is *not* what I want to achieve, beggin' your pardon ;-) The first messages should not display

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

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
The most simple way is to implement IAjaxIndicatorAware interface on the component wish to display the indicator. For instance, if your page implements this interface, you will have a generic indicator for all ajax requests inside your page. Also, you can be more specific by implementing this