You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "N. Metzger" <nm...@odu.edu> on 2010/10/06 15:11:41 UTC
AjaxLazyLoadPanel loading component
Hi all,
I just don't see it this morning: I have a AjaxLazyLoadPanel to load a big
tree structure which works fine. I see the indicator that it's loading, but
would like to add some words to it, e.g. "Loading ...". So I have
overridden:
public Component getLoadingComponent(String id){
return new Label (id, "Loading ...");
}
This works, but now my indicator is gone.
Which would be the correct behavior to attach to the label to show the
little moving circle again?
Thanks,
Natalie
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-component-tp2964896p2964896.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: AjaxLazyLoadPanel loading component
Posted by John Owen <jo...@globalscape.com>.
Pseudocode:
class IndicatingLabel extends Label implements IAjaxIndicatorAware {
private final AjaxIndicatorAppender indicatorAppender;
public IndicatingLabel(...) {
super(...);
add(indicatorAppender = new AjaxIndicatorAppender());
}
public String getAjaxIndicatorMarkupId() {
return indicatorAppender.getMarkupId();
}
}
-----Original Message-----
From: N. Metzger [mailto:nmetzger@odu.edu]
Sent: Wednesday, October 06, 2010 8:56 AM
To: users@wicket.apache.org
Subject: Re: AjaxLazyLoadPanel loading component
It worked, thanks!!!
Natalie
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-component-tp2964896p2965012.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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxLazyLoadPanel loading component
Posted by "N. Metzger" <nm...@odu.edu>.
It worked, thanks!!!
Natalie
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-component-tp2964896p2965012.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: AjaxLazyLoadPanel loading component
Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Haven´t tried this but it might work,
public Component getLoadingComponent(final String markupId)
{
return new Label(markupId, "<div>Loading...<img src=\"" +
RequestCycle.get().urlFor(AbstractDefaultAjaxBehavior.INDICATOR) +
"\"/></div>").setEscapeModelStrings(false);
}
Also you could return a panel instead of a label if you need something
more complicated.
Ernesto
On Wed, Oct 6, 2010 at 3:11 PM, N. Metzger <nm...@odu.edu> wrote:
>
> Hi all,
>
> I just don't see it this morning: I have a AjaxLazyLoadPanel to load a big
> tree structure which works fine. I see the indicator that it's loading, but
> would like to add some words to it, e.g. "Loading ...". So I have
> overridden:
> public Component getLoadingComponent(String id){
> return new Label (id, "Loading ...");
> }
>
> This works, but now my indicator is gone.
> Which would be the correct behavior to attach to the label to show the
> little moving circle again?
>
> Thanks,
> Natalie
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadPanel-loading-component-tp2964896p2964896.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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org