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

AjaxTimerBehavior will stop after ajax update of component it is attached to

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.3.0
    • 8.0.0-M1, 7.4.0, 6.24.0
    • wicket
    • None

    Description

      If you update a component that has AjaxTimerBehavior attached, this behavior will not fire anymore.
      See attached quickstart.
      This is due to wicket-ajax-jquery.js:2880 - all timers are removed on components DOM node remove (update). But new timer is not scheduled by the behavior because it thinks it has timeout already scheduled.

      I propose to add timeout in AbstractAjaxTimerBehavior.renderHead() at all circumstances, not only on full page render. (as shown in attached quickstart)

      Attachments

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              vlastimil.dolejs Vlastimil
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: