[
https://issues.apache.org/jira/browse/WICKET-5822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14298439#comment-14298439
]
Ernesto Reinaldo Barreiro commented on WICKET-5822:
---------------------------------------------------
By the way:
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L2830
Wouldn't it be nicer to have a generic way for components register beforeunload
JS handlers? and for other events? So, that handling of timers remove is just
part of something more general/abstract? e.g. there where also some memory
leaks with YUI date pickers... They could be handled by the same machinery
> AjaxSelfUpdatingTimer stops working after ajax download
> -------------------------------------------------------
>
> Key: WICKET-5822
> URL: https://issues.apache.org/jira/browse/WICKET-5822
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.18.0
> Environment: Linux
> Reporter: Elvis Ciocoiu
> Assignee: Sven Meier
> Attachments: timer test.zip
>
>
> I've encountered a strange behavior related to AjaxSelfUpdatingTimerBahavior.
> It triggers normally until I click a link that downloads a dynamic resource.
> The ajax download link is constructed using the recommendations from:
> https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
> The problem seems to be related to:
> target.appendJavaScript("setTimeout(\"window.location.href='"
> + url + "'\", 100);");
> from ajax download initiate, but if i comment it the download doesn't work
> anymore.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)