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

append AjaxTimerBehavior script to component markup

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0 branch (discontinued), 1.2.2, 1.2.3
    • wicket
    • None

    Description

      AbstractAjaxTimerBehavior appends itself to the body onload attribute in renderHead. This does not work when the behavior is added to a component that is rendered by an AjaxRequestTarget. As suggested by Igor, this can be fixed by injecting the script directly into the response after the component has been rendered, in onComponentRendered

      Attachments

        Activity

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

          People

            ivaynberg Igor Vaynberg
            jimmclaughlin Jim McLaughlin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment