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