Tag: wicket

Wicket Excel页面过期

使用WebResponse导出excel后,单击一个链接会导致页面过期错误。 有什么build议么 ? 谢谢。

在Wicket DownloadLink上的setCacheDuration

我目前在Wicket中使用downloadLink来允许用户下载一个创build的excel文件,然后被删除。 当这是通过SSL完成IE给我一个错误:“无法下载。 Internet Explorer无法打开此网站。 请求的网站不可用或无法find。 请稍后再试。 “ 这里: http : //support.microsoft.com/kb/323308 从上面的微软支持链接看了一些后,似乎是因为它是通过SSL,而我有 response.setHeader("Cache-Control", "no-cache, max-age=0, must-revalidate, no-store"); 我设置我的downloadLink像这样: private void setupDownloadLink() { IModel excelFileModel = new AbstractReadOnlyModel() { public Object getObject() { return excelCreator(); } }; auditDownloadlink = new DownloadLink("auditDownloadlink", excelFileModel); auditDownloadlink.setOutputMarkupPlaceholderTag(true); auditDownloadlink.setDeleteAfterDownload(true); auditDownloadlink.setCacheDuration(Duration.NONE); auditDownloadlink.setVisible(false); findUserForm.add(auditDownloadlink); } However, it seems to work if I do: […]