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
