The simplest way I'm guessing is to have your link that generates/returns the pdf to be a target="_blank" as you say.
Then in javascript change the window url from the detail url to the summary url. If adding your own js to an actionlink is tricky you could not use an action (or page) link, but do the whole thing in javascript - open a new window with the appropriate url for the pdf, and then load the summary page in the current window. Or maybe a mixin would work if you want to add your own js to an action or page link? Richard. On Fri, 2011-04-08 at 11:56 +0100, Jim O'Callaghan wrote: > I have a requirement to generate a PDF based on some submitted form data in > a 'detail' page, and then pop up the PDF in a new tab/window while at the > same time returning from the 'detail' page to a 'summary' page. I don't > want to pollute the summary page with any code related to opening the PDF in > a new tab/window. The actual PDF is being generated and I can return that > as a stream successfully but I'm trying to find out how to return the > summary page in the existing tab/window, and also trigger the PDF opening in > another tab/window, as effectively I'm trying to generate two server > responses for one server request. Can anyone suggest a good way of going > about this? Should I put something in the detail page that triggers an > actionLink with target="_blank" before redirecting to the summary page? > Thanks. > > Regards, > Jim. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org