Thanks.
On Thu, Jul 11, 2013 at 3:42 PM, Martin Grigorov <[email protected]>wrote: > Hi, > > Read > > https://cwiki.apache.org/confluence/display/WICKET/Wicket+Ajax#WicketAjax-o.a.w.ajax.IAjaxCallDecoratorisreplacedwitho.a.w.ajax.attributes.IAjaxCallListener > . > > > On Thu, Jul 11, 2013 at 3:38 PM, Altuğ Bilgin Altıntaş <[email protected] > >wrote: > > > Hi all; > > > > We are trying to migrate from Wicket 1.4 to 6.9.0. > > > > We encountered a strange problem. > > > > Here is the migrated code (which is working incorrectly): > > > > @Override > > protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { > > super.updateAjaxAttributes(attributes); > > > > AjaxCallListener myAjaxCallListener = new AjaxCallListener() { > > > > @Override > > public CharSequence getFailureHandler(Component component) { > > return BlockerBehaviour.getJSUnBlock(); > > } > > > > @Override > > public CharSequence getBeforeHandler(Component component) { > > return BlockerBehaviour.getJSBlock(); > > } > > > > @Override > > public CharSequence getSuccessHandler(Component component) > { > > return BlockerBehaviour.getJSUnBlock(); > > } > > }; > > > > attributes.getAjaxCallListeners().add(myAjaxCallListener); > > } > > > > My application doesn't work because we need to add Component's script. I > > mean in Wicket 1.4 version , I can append component's script like this, > ex > > : > > > > @Override > > public CharSequence decorateOnFailureScript(CharSequence script) { > > return *script *+ " " + BlockerBehaviour.getJSUnBlock(); > > } > > > > How can we append script of Component in Wicket 6.9.0 ? > > > > Thanks. > > >
