[
https://issues.apache.org/jira/browse/WICKET-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-3059.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5-RC4
With r1097491 it is possible to that by making your custom IAjaxCallDecorator
an IHeaderContributor.
> IAjaxCallDecorator should implement IHeaderContributor
> ------------------------------------------------------
>
> Key: WICKET-3059
> URL: https://issues.apache.org/jira/browse/WICKET-3059
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Affects Versions: 1.4.12, 1.5-M2.1
> Reporter: Michal Kurtak
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 1.5-RC4
>
>
> Original inquiry on mailing list:
> http://www.mail-archive.com/[email protected]/msg55663.html
> For example overridden method from 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). To achieve single point of responsibility
> (for calling js function) its useful to contribute to html head from
> IAjaxCallDecorator.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira