IAjaxCallDecorator should implement IHeaderContributor
------------------------------------------------------

                 Key: WICKET-3059
                 URL: https://issues.apache.org/jira/browse/WICKET-3059
             Project: Wicket
          Issue Type: Improvement
          Components: wicket
    Affects Versions: 1.5-M2.1, 1.4.12
            Reporter: Michal Kurtak
            Priority: Minor


Original inquiry on mailing list: 
http://www.mail-archive.com/us...@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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to