You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by d2marcelo <d2...@gmail.com> on 2010/11/01 02:50:28 UTC
Re: Force DownloadLink
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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org