[1.5-RC3] AjaxLink: order of added behaviors in relation to AjaxEventBehavior

2011-04-12 Thread Gabriel Bucher
in wicket 1.4 I used an Behavior called OnClickConfirmBehavior to add a javascript confirm dialog: AjaxLink link = ... link.add( new OnClickConfirmBehavior(...) ); if I do the same in wicket 1.5-rc3, the javascript confirm dialog never appears. this has to do with the order, who the

Re: [1.5-RC3] AjaxLink: order of added behaviors in relation to AjaxEventBehavior

2011-04-12 Thread Martin Grigorov
I moved the registration in #onInitialize() so that now it is possible to customize the behavior if needed. See 1.5-RC3 changelog for more details. For your use case it is better to use AjaxLink#getAjaxCallDecorator() instead. override decorateScript(Component comp, String script) { return

Re: [1.5-RC3] AjaxLink: order of added behaviors in relation to AjaxEventBehavior

2011-04-12 Thread Gabriel Bucher
Hi Martin, thanks for the hint... this way works for me too. cheers gab On 12/04/11 17:42, Martin Grigorov wrote: I moved the registration in #onInitialize() so that now it is possible to customize the behavior if needed. See 1.5-RC3 changelog for more details. For your use case it is

Re: [1.5-RC3] AjaxLink: order of added behaviors in relation to AjaxEventBehavior

2011-04-12 Thread Igor Vaynberg
we should probably make the ajax behavior append to the attribute instead of overriding it... -igor On Tue, Apr 12, 2011 at 2:42 AM, Martin Grigorov mgrigo...@apache.org wrote: I moved the registration in #onInitialize() so that now it is possible to customize the behavior if needed. See