Is there a way to stream the PDF back the same window then, and in the onload, detect if it's the PDF stream, and if so then open the new window using javascript with the PDF stream in that? That way we don't have to store the report in the Session and worry about clearing it, etc.
A javascript code example would be great if anyone knows of one. I was hoping to avoid javascript and use JSF if possible, but not always possible to avoid javascript. Andrew Robinson-5 wrote: > > You can't directly, but you can indirectly. > > 1) do not change the target, you need the response to come back to the > same window > 2) add a onload to your body that opens a window using javascript to > the URL that points to your PDF file contents on the server > > So the report would need to be saved in the user's http session, or > the user's conversation (if you are using conversations). Then you can > clear it out after if you want. Then a servlet can load the PDF from > the HTTP session and send it down (to the opened window) > > -- View this message in context: http://www.nabble.com/validation-with-commandLink-and-target-%3D-_blank-tf3601961.html#a10066572 Sent from the MyFaces - Users mailing list archive at Nabble.com.

