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 (JIRA)" <ji...@apache.org> on 2013/01/17 10:12:23 UTC

[jira] [Resolved] (WICKET-4985) AbstractAjaxTimerBehavior does not work when attached to a Page

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

Martin Grigorov resolved WICKET-4985.
-------------------------------------

    Resolution: Duplicate
    
> 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