Extend org.apache.wicket.ajax.AbstractDefaultAjaxBehavior then override renderHead(IHeaderResponse) and getAjaxCallDecorator()
On Fri, Sep 17, 2010 at 3:50 PM, Michal Kurtak <[email protected]>wrote: > Hi, > > Is it possible to IAjaxCallDecorator implement IHeaderContributor? > > For example ovverriden method form IAjaxCallDecorator looks like this: > public CharSequence preDecorateScript(CharSequence script) > { > "MyLibrary.call();" + script; > } > > Where MyLibrary.call(); is javascript function defined in MyLibrary > namespace in external js file (mylibrary.js). I need to contribute > this file to head. What is the best place for this contribution? > I suppose if IAjaxCallDecorator would implement IHeaderContributor, it > would be perfect place. > > Best regards, > Michal Kurtak > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
