Hi,
Create a panel that has a child an image (the busy indicator).
Add a timer behavior to this panel and check whether the slow operation is
done and replace the image with another component that renders the new data:
public void onTimer(AjaxRequestTarget target) {
Data newData = getNewData();
if (newData != null)
{
NewComponent c = new Component(image.getId(), newData);
image.replaceWith(c);
target.add(c);
}
else {
// target.appendJavaScript("still waiting ...");
}
}
Martin Grigorov
Wicket Training and Consulting
On Thu, Jan 30, 2014 at 12:02 PM, vp143 <[email protected]> wrote:
> Ernesto Reinaldo Barreiro-4 wrote
> > Hi,
> >
> > I remember Igor posted and example of a non-blocking lazy load panel
> (long
> > time ago). As far as I remember all it did was:
> >
> > 1-Check is results where ready is so render the panel
> > 2-If not then schedule a timer to poll the panel again
> >
> > Regards - Ernesto Reinaldo Barreiro
>
> Does anyone have a link to this post as I cannot find it?
> Regards, V
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-asynchronously-tp4664035p4664063.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>