You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Lasse Lindgård (Commented JIRA)" <ji...@apache.org> on 2012/02/24 13:52:49 UTC
[jira] [Commented] (WICKET-4429) executeAllTimerBehaviors does not
find all timer behaviours
[ https://issues.apache.org/jira/browse/WICKET-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13215590#comment-13215590 ]
Lasse Lindgård commented on WICKET-4429:
----------------------------------------
Problem 2: AjaxSelfUpdatingTimerBehavior only applies to 1.4.x
> executeAllTimerBehaviors does not find all timer behaviours
> -----------------------------------------------------------
>
> Key: WICKET-4429
> URL: https://issues.apache.org/jira/browse/WICKET-4429
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.19, 1.5.4
> Reporter: Lasse Lindgård
> Priority: Minor
> Labels: testing
> Attachments: AjaxSelfUpdatingTimerBehavior_test.zip
>
>
> 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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira