You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (Resolved) (JIRA)" <ji...@apache.org> on 2012/02/24 14:16:48 UTC

[jira] [Resolved] (WICKET-4429) executeAllTimerBehaviors does not find all timer behaviours

     [ https://issues.apache.org/jira/browse/WICKET-4429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4429.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 6.0.0
                   1.5.5
                   1.4.20
         Assignee: Martin Grigorov
    
> 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
>            Assignee: Martin Grigorov
>            Priority: Minor
>              Labels: testing
>             Fix For: 1.4.20, 1.5.5, 6.0.0
>
>         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