Oliver,

Just one idea:

-Put an AJAX timer (of one second?) on your page
-Use approach on [1] to trigger download

Regards,

Ernesto

1-https://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html

On Sun, Nov 14, 2010 at 8:46 AM, okrohne <[email protected]> wrote:
>
> 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to