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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment