Re: AjaxLazyLoadingPanel finished event?
Hi, Indeed there is no explicit method for this. The only way I see is to override org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent and use getRequestCycle().find(AjaxRequestTarget.class) to get the target and use it. Please file a ticket for improvement. On Thu, Dec 6, 2012 at 9:29 PM, pkc pkci...@gmail.com wrote: Hi Everyone, I need to update a feedback panel with some info after a lazy load panel finishes getting its data. I was looking for a method like onPanelLoaded( AjaxRequestTarget target ) but didn't see anything so not sure how to get my feedback panel refreshed. Thanks for any tips. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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 jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: AjaxLazyLoadingPanel finished event?
Martin. Wouldn't AjaxRequestTarget.get() work as well? On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, Indeed there is no explicit method for this. The only way I see is to override org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent and use getRequestCycle().find(AjaxRequestTarget.class) to get the target and use it. Please file a ticket for improvement. On Thu, Dec 6, 2012 at 9:29 PM, pkc pkci...@gmail.com wrote: Hi Everyone, I need to update a feedback panel with some info after a lazy load panel finishes getting its data. I was looking for a method like onPanelLoaded( AjaxRequestTarget target ) but didn't see anything so not sure how to get my feedback panel refreshed. Thanks for any tips. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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 jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia
Re: AjaxLazyLoadingPanel finished event?
AjaxRequestTarget.get() is the API for Wicket 1.5 In Wicket 6 ART is an interface and there is no way to have static method, so getRequestCycle().find(IRequestHandler.class) is introduced. It can be used for any impl of IRequestHandler, not just AjaxRequestTarget. On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Wouldn't AjaxRequestTarget.get() work as well? On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Indeed there is no explicit method for this. The only way I see is to override org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent and use getRequestCycle().find(AjaxRequestTarget.class) to get the target and use it. Please file a ticket for improvement. On Thu, Dec 6, 2012 at 9:29 PM, pkc pkci...@gmail.com wrote: Hi Everyone, I need to update a feedback panel with some info after a lazy load panel finishes getting its data. I was looking for a method like onPanelLoaded( AjaxRequestTarget target ) but didn't see anything so not sure how to get my feedback panel refreshed. Thanks for any tips. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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 jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: AjaxLazyLoadingPanel finished event?
Thanks for explanation! On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov mgrigo...@apache.orgwrote: AjaxRequestTarget.get() is the API for Wicket 1.5 In Wicket 6 ART is an interface and there is no way to have static method, so getRequestCycle().find(IRequestHandler.class) is introduced. It can be used for any impl of IRequestHandler, not just AjaxRequestTarget. On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Wouldn't AjaxRequestTarget.get() work as well? On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Indeed there is no explicit method for this. The only way I see is to override org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent and use getRequestCycle().find(AjaxRequestTarget.class) to get the target and use it. Please file a ticket for improvement. On Thu, Dec 6, 2012 at 9:29 PM, pkc pkci...@gmail.com wrote: Hi Everyone, I need to update a feedback panel with some info after a lazy load panel finishes getting its data. I was looking for a method like onPanelLoaded( AjaxRequestTarget target ) but didn't see anything so not sure how to get my feedback panel refreshed. Thanks for any tips. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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 jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia
Re: AjaxLazyLoadingPanel finished event?
Martin. Would it make sense to add class /** * Instance finder. * */ public static final class Instance { /** * * @return The instance of AjaxRequestTarget. */ public static AjaxRequestTarget get() { return RequestCycle.get().find(AjaxRequestTarget.class); } } to AjaxRequestTarget interface so that one can do AjaxRequestTarget.Instance.get()... similar to AjaxRequestTarget.get() on 1.5.x... Or there is no much gain in doing that? On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov mgrigo...@apache.orgwrote: AjaxRequestTarget.get() is the API for Wicket 1.5 In Wicket 6 ART is an interface and there is no way to have static method, so getRequestCycle().find(IRequestHandler.class) is introduced. It can be used for any impl of IRequestHandler, not just AjaxRequestTarget. On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Wouldn't AjaxRequestTarget.get() work as well? On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Indeed there is no explicit method for this. The only way I see is to override org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent and use getRequestCycle().find(AjaxRequestTarget.class) to get the target and use it. Please file a ticket for improvement. On Thu, Dec 6, 2012 at 9:29 PM, pkc pkci...@gmail.com wrote: Hi Everyone, I need to update a feedback panel with some info after a lazy load panel finishes getting its data. I was looking for a method like onPanelLoaded( AjaxRequestTarget target ) but didn't see anything so not sure how to get my feedback panel refreshed. Thanks for any tips. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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 jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia
Re: AjaxLazyLoadingPanel finished event?
No one asked for such API so far. When we did it with RequestCycle.get().find(AjaxRequestTarget.class) several Wicket devs agreed on this API. On Fri, Dec 7, 2012 at 10:56 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Would it make sense to add class /** * Instance finder. * */ public static final class Instance { /** * * @return The instance of AjaxRequestTarget. */ public static AjaxRequestTarget get() { return RequestCycle.get().find(AjaxRequestTarget.class); } } to AjaxRequestTarget interface so that one can do AjaxRequestTarget.Instance.get()... similar to AjaxRequestTarget.get() on 1.5.x... Or there is no much gain in doing that? On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov mgrigo...@apache.org wrote: AjaxRequestTarget.get() is the API for Wicket 1.5 In Wicket 6 ART is an interface and there is no way to have static method, so getRequestCycle().find(IRequestHandler.class) is introduced. It can be used for any impl of IRequestHandler, not just AjaxRequestTarget. On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Wouldn't AjaxRequestTarget.get() work as well? On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Indeed there is no explicit method for this. The only way I see is to override org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent and use getRequestCycle().find(AjaxRequestTarget.class) to get the target and use it. Please file a ticket for improvement. On Thu, Dec 6, 2012 at 9:29 PM, pkc pkci...@gmail.com wrote: Hi Everyone, I need to update a feedback panel with some info after a lazy load panel finishes getting its data. I was looking for a method like onPanelLoaded( AjaxRequestTarget target ) but didn't see anything so not sure how to get my feedback panel refreshed. Thanks for any tips. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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 jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: AjaxLazyLoadingPanel finished event?
Yes I understand that... but IMHO it would certainly help migrating as you would only need to insert .Instance to get your old code working. On Fri, Dec 7, 2012 at 11:16 AM, Martin Grigorov mgrigo...@apache.orgwrote: No one asked for such API so far. When we did it with RequestCycle.get().find(AjaxRequestTarget.class) several Wicket devs agreed on this API. On Fri, Dec 7, 2012 at 10:56 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Would it make sense to add class /** * Instance finder. * */ public static final class Instance { /** * * @return The instance of AjaxRequestTarget. */ public static AjaxRequestTarget get() { return RequestCycle.get().find(AjaxRequestTarget.class); } } to AjaxRequestTarget interface so that one can do AjaxRequestTarget.Instance.get()... similar to AjaxRequestTarget.get() on 1.5.x... Or there is no much gain in doing that? On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov mgrigo...@apache.org wrote: AjaxRequestTarget.get() is the API for Wicket 1.5 In Wicket 6 ART is an interface and there is no way to have static method, so getRequestCycle().find(IRequestHandler.class) is introduced. It can be used for any impl of IRequestHandler, not just AjaxRequestTarget. On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Wouldn't AjaxRequestTarget.get() work as well? On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Indeed there is no explicit method for this. The only way I see is to override org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent and use getRequestCycle().find(AjaxRequestTarget.class) to get the target and use it. Please file a ticket for improvement. On Thu, Dec 6, 2012 at 9:29 PM, pkc pkci...@gmail.com wrote: Hi Everyone, I need to update a feedback panel with some info after a lazy load panel finishes getting its data. I was looking for a method like onPanelLoaded( AjaxRequestTarget target ) but didn't see anything so not sure how to get my feedback panel refreshed. Thanks for any tips. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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 jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia
Re: AjaxLazyLoadingPanel finished event?
This change is properly documented in the migration guide and as I said so far no one complained :-) Your suggestion sounds like a helper for the migration which we wont be able to remove in the future. On Fri, Dec 7, 2012 at 11:33 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Yes I understand that... but IMHO it would certainly help migrating as you would only need to insert .Instance to get your old code working. On Fri, Dec 7, 2012 at 11:16 AM, Martin Grigorov mgrigo...@apache.org wrote: No one asked for such API so far. When we did it with RequestCycle.get().find(AjaxRequestTarget.class) several Wicket devs agreed on this API. On Fri, Dec 7, 2012 at 10:56 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Would it make sense to add class /** * Instance finder. * */ public static final class Instance { /** * * @return The instance of AjaxRequestTarget. */ public static AjaxRequestTarget get() { return RequestCycle.get().find(AjaxRequestTarget.class); } } to AjaxRequestTarget interface so that one can do AjaxRequestTarget.Instance.get()... similar to AjaxRequestTarget.get() on 1.5.x... Or there is no much gain in doing that? On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov mgrigo...@apache.org wrote: AjaxRequestTarget.get() is the API for Wicket 1.5 In Wicket 6 ART is an interface and there is no way to have static method, so getRequestCycle().find(IRequestHandler.class) is introduced. It can be used for any impl of IRequestHandler, not just AjaxRequestTarget. On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Wouldn't AjaxRequestTarget.get() work as well? On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Indeed there is no explicit method for this. The only way I see is to override org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent and use getRequestCycle().find(AjaxRequestTarget.class) to get the target and use it. Please file a ticket for improvement. On Thu, Dec 6, 2012 at 9:29 PM, pkc pkci...@gmail.com wrote: Hi Everyone, I need to update a feedback panel with some info after a lazy load panel finishes getting its data. I was looking for a method like onPanelLoaded( AjaxRequestTarget target ) but didn't see anything so not sure how to get my feedback panel refreshed. Thanks for any tips. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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 jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/
Re: AjaxLazyLoadingPanel finished event?
Martin, On Fri, Dec 7, 2012 at 11:39 AM, Martin Grigorov mgrigo...@apache.orgwrote: This change is properly documented in the migration guide and as I said so far no one complained :-) Your suggestion sounds like a helper for the migration which we wont be able to remove in the future. Yes your comments are right and fair... it might be that my brain is needing some holidays;-) On Fri, Dec 7, 2012 at 11:33 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Yes I understand that... but IMHO it would certainly help migrating as you would only need to insert .Instance to get your old code working. On Fri, Dec 7, 2012 at 11:16 AM, Martin Grigorov mgrigo...@apache.org wrote: No one asked for such API so far. When we did it with RequestCycle.get().find(AjaxRequestTarget.class) several Wicket devs agreed on this API. On Fri, Dec 7, 2012 at 10:56 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Would it make sense to add class /** * Instance finder. * */ public static final class Instance { /** * * @return The instance of AjaxRequestTarget. */ public static AjaxRequestTarget get() { return RequestCycle.get().find(AjaxRequestTarget.class); } } to AjaxRequestTarget interface so that one can do AjaxRequestTarget.Instance.get()... similar to AjaxRequestTarget.get() on 1.5.x... Or there is no much gain in doing that? On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov mgrigo...@apache.org wrote: AjaxRequestTarget.get() is the API for Wicket 1.5 In Wicket 6 ART is an interface and there is no way to have static method, so getRequestCycle().find(IRequestHandler.class) is introduced. It can be used for any impl of IRequestHandler, not just AjaxRequestTarget. On Fri, Dec 7, 2012 at 9:27 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Wouldn't AjaxRequestTarget.get() work as well? On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Indeed there is no explicit method for this. The only way I see is to override org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent and use getRequestCycle().find(AjaxRequestTarget.class) to get the target and use it. Please file a ticket for improvement. On Thu, Dec 6, 2012 at 9:29 PM, pkc pkci...@gmail.com wrote: Hi Everyone, I need to update a feedback panel with some info after a lazy load panel finishes getting its data. I was looking for a method like onPanelLoaded( AjaxRequestTarget target ) but didn't see anything so not sure how to get my feedback panel refreshed. Thanks for any tips. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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 jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com http://jweekend.com/ -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ http://antiliasoft.com/antilia
AjaxLazyLoadingPanel finished event?
Hi Everyone, I need to update a feedback panel with some info after a lazy load panel finishes getting its data. I was looking for a method like onPanelLoaded( AjaxRequestTarget target ) but didn't see anything so not sure how to get my feedback panel refreshed. Thanks for any tips. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxLazyLoadingPanel-finished-event-tp4654565.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