Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

IndicatorAware and BookmarkablePageLink

$
0
0
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.

Viewing all articles
Browse latest Browse all 5648

Trending Articles