Hi, class MyComponent extends SomeAjaxComponent {
@Override protected void updateAjaxAttributes(attrs) { super.updateAjaxAttributes(attrs); attrs.getAjaxCallListeners().add(getListener()); } protected abstract IAjaxCallListener getListener(); } On Thu, Sep 27, 2012 at 10:34 AM, Marieke Vandamme <marieke.vanda...@tvh.be> wrote: > Hi, > > Is there a way to add a AjaxCallListener to an exiting component? > The only way I know off is to override updateAjaxAttributes, but that is > only possible when constructing the component. > Is there something like component.getAjaxRequestAttributes() ? > > Thanks ! Kind regards, Marieke > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-6-add-AjaxCallListener-to-existing-component-tp4652404.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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org