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

executeAllTimerBehaviors does not find all timer behaviours

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

Details

    Description

      WicketTester tester = new WicketTester();
      tester.startPage(WaitPage.class);
      tester.assertRenderedPage(WaitPage.class);
      tester.executeAllTimerBehaviors(tester.getLastRenderedPage());

      public WaitPage() {
      Label message = new Label("message", "Please wait ..");
      add(message);

      add(new AjaxSelfUpdatingTimerBehavior(Duration.milliseconds(1000)) {

      @Override
      protected void onPostProcessTarget(AjaxRequestTarget target) {
      // wait for background thread to complete
      // if (task.isDone())

      { ... stop(); setResponsePage(NextPage.class); }

      });

      The timer does not fire.
      Problem 1: The code looks for MarkupContainers
      Problem 2: The code looks for AjaxSelfUpdatingTimerBehavior but should look for AbstractAjaxTimerBehavior

      Attachments

        Activity

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

          People

            mgrigorov Martin Tzvetanov Grigorov
            lassel Lasse Lindgård
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment