Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.4.19, 1.5.4
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())
});
The timer does not fire.
Problem 1: The code looks for MarkupContainers
Problem 2: The code looks for AjaxSelfUpdatingTimerBehavior but should look for AbstractAjaxTimerBehavior