Extend org.apache.wicket.ajax.AbstractDefaultAjaxBehavior

then override renderHead(IHeaderResponse) and getAjaxCallDecorator()

On Fri, Sep 17, 2010 at 3:50 PM, Michal Kurtak <michal.kur...@gmail.com>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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to