I've tried the above options but they didn't work.
what I have now is
exportEnv.setWindowClosedCallback(new ModalWindow.WindowClosedCallback()
{
public void onClose(AjaxRequestTarget target)
{
final File exportFile= getFile();
IResourceStream resourceStream = new FileResourceStream(
new
org.apache.wicket.util.file.File(exportFile));
getRequestCycle().setRequestTarget(
new
ResourceStreamRequestTarget(resourceStream) {
public String
getFileName() {
return
exportFile.getName();
}
});
}
});
the code is being processed but the file is not being exported.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Force-DownloadLink-tp3020797p3021666.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]