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/04/08 14:57:17 UTC

[jira] [Commented] (WICKET-5104) AjaxSelfUpdatingTimerBehavior in hidden component in ModalWindow causes Ajax Response Error

    [ https://issues.apache.org/jira/browse/WICKET-5104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13625340#comment-13625340 ] 

Martin Grigorov commented on WICKET-5104:
-----------------------------------------

I cannot reproduce the problem with the attached quickstart.
The Label is set invisible in the panel constructor thus the Ajax timer behavior is disabled and its #renderHead() is not called at all, so it doesn't contribute the JS which should lead to this error.

What do I miss ?
                
> AjaxSelfUpdatingTimerBehavior in hidden component in ModalWindow causes Ajax Response Error
> -------------------------------------------------------------------------------------------
>
>                 Key: WICKET-5104
>                 URL: https://issues.apache.org/jira/browse/WICKET-5104
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 6.3.0, 6.6.0
>            Reporter: Marios Skounakis
>            Assignee: Martin Grigorov
>         Attachments: 5104.zip, fix-WICKET-5104.patch
>
>
> I have a ModalWindow which shows a panel with a hidden label with an AjaxSelfUpdatingTimerBehavior. When the modal window is shown, the following error occurs in the Wicket Ajax Debug console:
> ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: TypeError: Cannot read property 'label5' of undefined, text: (function(){clearTimeout(Wicket.TimerHandles['label5']); delete Wicket.TimerHandles['label5'];})();

--
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