RE: AjaxLazyLoadPanel loading component
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:nmetz...@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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxLazyLoadPanel loading component
Haven´t tried this but it might work, public Component getLoadingComponent(final String markupId) { return new Label(markupId, "Loading...").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 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-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org