[
https://issues.apache.org/jira/browse/WICKET-5104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13625799#comment-13625799
]
Sven Meier commented on WICKET-5104:
------------------------------------
Martin: The issue can easily be reproduced with Cedric instructions:
Thread [qtp1028384965-18] (Suspended (breakpoint at line 201 in
AbstractAjaxTimerBehavior))
AjaxSelfUpdatingTimerBehavior(AbstractAjaxTimerBehavior).onRemove(Component)
line: 201
Behaviors.onRemove(Component) line: 235
MessageBoxPanel$1(Component).internalOnRemove() line: 1110
MessageBoxPanel(MarkupContainer).removeChildren() line: 1590
MessageBoxPanel(Component).internalOnRemove() line: 1111
ModalWindow(MarkupContainer).removedComponent(Component) line: 1343
ModalWindow(MarkupContainer).replace(Component) line: 740
ModalWindow.setContent(Component) line: 944
HomePage$1.onClick(AjaxRequestTarget) line: 26
...
As you can see this has nothing to do with #renderHead().
> 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