Peter Parson created WICKET-4985:
------------------------------------

             Summary: AbstractAjaxTimerBehavior does not work when attached to 
a Page 
                 Key: WICKET-4985
                 URL: https://issues.apache.org/jira/browse/WICKET-4985
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 6.4.0
            Reporter: Peter Parson
         Attachments: quickstart-ajax-timer-in-page.zip

AbstractAjaxTimerBehavior does not work when attached to a Page directly (as 
opposed to a Panel).

This is because shouldTrigger looks for a WebPage only in the components 
parents, not the component itself:

private boolean shouldTrigger()
        {
                return isStopped() == false &&
                                isEnabled(getComponent()) &&
                                getComponent().findParent(WebPage.class) != 
null;
        }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to