[ https://issues.apache.org/jira/browse/WICKET-6286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15804495#comment-15804495 ]
Martin Grigorov commented on WICKET-6286: ----------------------------------------- 1) window.location = myUrl 2) Actually just click a link. As in, a fully rendered link. (This has literally the exact same effect as programmatically setting the location) Actually this is how people did it until recently: https://cwiki.apache.org/confluence/display/WICKET/ajax-update-and-file-download-in-one-blow.html. But recently Maxim (the reporter of this ticket) had an issue that this approach closes the WebSocket connection in the page, because the browser believes that the page should be unloaded. That's why we decided the new version to use an iframe. > Would be good to have AjaxDownload available out of the box > ------------------------------------------------------------ > > Key: WICKET-6286 > URL: https://issues.apache.org/jira/browse/WICKET-6286 > Project: Wicket > Issue Type: New Feature > Components: wicket-extensions > Affects Versions: 8.0.0-M2, 7.5.0 > Reporter: Maxim Solodovnik > Assignee: Sven Meier > Labels: patch > > Currently every project need to create own AjaxDownload component based on > the Wiki example. > Unfortunately this component has some issues with WebSockets > Discussion: http://markmail.org/message/gizsnqh2qgypcgri > PRs: > https://github.com/apache/wicket/pull/190 > https://github.com/apache/wicket/pull/191 -- This message was sent by Atlassian JIRA (v6.3.4#6332)