Hi,

BookmarkablePageLink unloads the current page and loads a new page.
As soon as the current page is unloaded the "busy" indicator stops working.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Oct 23, 2014 at 8:46 PM, msalman <[email protected]> wrote:

> Hi,
>
> We use SuckerfishMenuPanel for our menus and in it the links use
> BookmarkablePageLinks.  I need to make make some of the links (menu items)
> IndicatorAware, i.e., show the whirling wheel, when clicked.
>
> I tried some thing like following:
>
>     private class LinkIndicatingAwareBehaviour extends AjaxEventBehavior
> implements IAjaxIndicatorAware
>     {
>
>                 AjaxIndicatorAppender indicator;
>
>                 public LinkIndicatingAwareBehaviour(
>                         String event,
>                         Link link)
>                 {
>                         super(event);
>                         this.indicator = new AjaxIndicatorAppender();
>                         link.add(indicator);
>                 }
>
>                 @Override
>                 public String getAjaxIndicatorMarkupId()
>                 {
>                         return indicator.getMarkupId();
>                 }
>
>                 @Override
>                 protected void onEvent(AjaxRequestTarget target)
>                 {
>                         // please see BookmarkablePageLink.onClick()
>                 }
>
>     }
>
> This shows the busy indicator for a very short while and does not cover the
> time when the page is getting ready to be shown.  So basically of no use.
>
> can some one please suggest something?
>
> Thanks.
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/IndicatorAware-and-BookmarkablePageLink-tp4668056.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]
>
>

Reply via email to