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

executeAllTimerBehaviors does not find all timer behaviours

    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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: