onsubmit() {
Page next=new MyPage();
next.add(new TriggerPdfDownloadBehavior(....));
setRepsonsePage(next);
}
where TriggerPdfDownloadBehavior is a behaviro that adds onload
javascript {window.location=url-to-pdf; }
-igor
On Mon, Mar 3, 2008 at 6:54 AM, Jay Hogan <[EMAIL PROTECTED]> wrote:
> I have a Form that collects info from the user that is used to dynamically
> create a PDF when the form is submitted. Currently, clicking the submit
> button creates the PDF and triggers the PDF download using a
> ResourceStreamRequestTarget. The problem is that the page with the form is
> still displayed. I would like to be able to create and download the PDF AND
> redirect to a new page when the form is submitted.
>
> What is the best way to do this?
>
> Thanks in advance for your help,
>
> Jay
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]