Re: Possible bug with AjaxLazyLoadPanel
Michael Zhavzharov the way you've indicated, it works correctly. Thank you. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-bug-with-AjaxLazyLoadPanel-tp4658793p4658846.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: Possible bug with AjaxLazyLoadPanel
Hm, I just tried to do what you are talking about and it works for me. I have an ALLP: add(new AjaxLazyLoadPanel("lazy") { @Override public Component getLazyLoadComponent(*String id*) { return new ContentPanel(*id*); } }); and AjaxLink: add(new AjaxLink("thumbLink") { @Override public void onClick(AjaxRequestTarget ajaxRequestTarget) { System.out.println(this.getPage().get("lazy").get(*"content"*)); } }); And in debug I can see, that get("content") returns me component that I need. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-bug-with-AjaxLazyLoadPanel-tp4658793p4658838.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: Possible bug with AjaxLazyLoadPanel
I know how it works, in my case the component is already loaded, and I can access it, the problem is I have to access the internal components of the "AjaxLazyLoadPanel". -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-bug-with-AjaxLazyLoadPanel-tp4658793p4658817.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: Possible bug with AjaxLazyLoadPanel
Hi, See AjaxLazyLoadPanel's source. It uses a temporary component until the expensive one is loaded. On Tue, May 14, 2013 at 6:29 PM, Raul wrote: > Hello, I'm trying to get a component to update with Ajax from a AjaxLink, > but > always returns null, the access component is as follows. > > Component current = this.getPage().get("commentsPanel").get > ("modalPanel"); > > Where "commentsPanel" is a "AjaxLazyLoadPanel" and "modalPanel" is of type > "Panel", If "commentsPanel" I put Panel type, the component finds > correctly, > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Possible-bug-with-AjaxLazyLoadPanel-tp4658793.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 > > -- Martin Grigorov Wicket Training & Consulting http://jWeekend.com <http://jweekend.com/>
Possible bug with AjaxLazyLoadPanel
Hello, I'm trying to get a component to update with Ajax from a AjaxLink, but always returns null, the access component is as follows. Component current = this.getPage().get("commentsPanel").get ("modalPanel"); Where "commentsPanel" is a "AjaxLazyLoadPanel" and "modalPanel" is of type "Panel", If "commentsPanel" I put Panel type, the component finds correctly, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Possible-bug-with-AjaxLazyLoadPanel-tp4658793.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