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
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
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
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
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
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
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
, 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
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
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
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
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 +
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
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
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
15 matches
Mail list logo