I thought that too, my first attempt was like that, in the constructor of the
completion page:
ResourceStreamRequestTarget target = new ResourceStreamRequestTarget(
new PDFResourceStream(new ByteArrayInputStream(pdf),
pdf.length));
target.setFileName("report.pdf");
getRequestCycle().setRequestTarget(target);
Then no download started, if I call this code in the "on submit" of the
previous page it does works.
Any hint what is wrong with my code above?
Thanks,
Oliver
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Redirect-after-download-a-pdf-tp3041112p3041534.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]