Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3059

IAjaxCallDecorator should implement IHeaderContributor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.12, 1.5-M2.1
    • 1.5-RC4
    • wicket
    • None

    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.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            michal.kurtak Michal Kurtak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: