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 WebPage implements IAjaxIndicatorAware {
//...
@Override
public String getAjaxIndicatorMarkupId() {
return "ajaxIndicator";
}
//...
}
That's all. Now ajaxIndicator DOM element to appear when ajax call will
start and will disappear when it will complete.
Hope this was helpful.
Alex Objelean
Thomas Götz wrote:
>
> 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 achieve this is with a solution as stated by Nishant
> (involving some kind of JS polling) ...
>
> -Tom
>
>
> Am 09.04.2010 08:48, schrieb 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.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]