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

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

Sven: can you reproduce the issue ?
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) checks whether the 
component is visible(InHierarchy) and only then calls behavior#renderHead().
As I said earlier neither 
org.apache.wicket.ajax.AbstractAjaxTimerBehavior#renderHead() nor 
org.apache.wicket.ajax.AbstractAjaxTimerBehavior#stop() is called here.
Please put breakpoints in these methods and attach/paste the stacktraces.
                
> 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

Reply via email to