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

Wickettester executeAllTimerBehaviors executes stopped behaviors too

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.5
    • 1.4.7, 1.5-M1
    • wicket
    • None

    Description

      When attempting to test a page with two ajax timer behaviours the first behaviour is triggered correctly. Then that behaviour is stopped (using the stop function) and a second behaviour is started. If executeAllTimerBehaviors is called again both behaviours are triggered even though one is stopped.

      It would be good if the code in BaseWicketTester.executeAllTimerBehaviors(MarkupContainer container) could validate if the behaviour is stopped or not before trying to execute it.

      Attachments

        1. WICKET-2660.patch
          1 kB
          Martin Grigorov

        Activity

          People

            ivaynberg Igor Vaynberg
            robertda Robert Dahlström
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: