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

OnChangeAjaxBehavior can render javascript before wicket-ajax.js is loaded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.15
    • 1.4.16, 1.5-RC2
    • wicket

    Description

      In the current OnChangeAjaxBehavior implementation, the behavior renders javascript (Wicket.ChangeHandler)
      within the onComponentRendered() method directly to the response. Its okay in case, when wicket-ajax.js is rendered in the head of the page, but if we move javascript to the footer of the page, the inlined javascript will be broken.

      I think, the javascript have to be evaluated after the DOM is built.

      Attachments

        1. fix-test-WICKET-3436.patch
          3 kB
          Alexander Morozov
        2. fix-WICKET-3436.patch
          2 kB
          Alexander Morozov

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            amorozov Alexander Morozov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: