You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/04/28 16:57:03 UTC
[jira] [Resolved] (WICKET-3059) IAjaxCallDecorator should implement
IHeaderContributor
[ 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/users@wicket.apache.org/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