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:27:04 UTC

[jira] [Assigned] (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 reassigned WICKET-3059:
---------------------------------------

    Assignee: Martin Grigorov

> 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
>
> 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