You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by msalman <mo...@yahoo.com> on 2014/10/23 19:46:33 UTC
IndicatorAware and BookmarkablePageLink
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: IndicatorAware and BookmarkablePageLink
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=87917
?
On Fri, Oct 24, 2014 at 6:39 PM, msalman <mo...@yahoo.com> wrote:
> Hi Martin
>
> Thanks for your response. And yes this explains the behavior I have seen.
> Any way the busy indicator can be shown during the entire page unloading
> and
> unloading process?
>
> Thanks.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/IndicatorAware-and-BookmarkablePageLink-tp4668056p4668082.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Regards - Ernesto Reinaldo Barreiro
Re: IndicatorAware and BookmarkablePageLink
Posted by msalman <mo...@yahoo.com>.
Hi Martin
Thanks for your response. And yes this explains the behavior I have seen.
Any way the busy indicator can be shown during the entire page unloading and
unloading process?
Thanks.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/IndicatorAware-and-BookmarkablePageLink-tp4668056p4668082.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: IndicatorAware and BookmarkablePageLink
Posted by Martin Grigorov <mg...@apache.org>.
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 <mo...@yahoo.com> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>