I am trying to stream a PDF to a new browser window. I can get this to work, but the strange thing that happens is that a new browser window gets opened, but instead of the PDF geting displayed inside the browser window, it is opened separately by Adobe Acrobat. So, the user is forced to close two windows, the Adobe Acrobat window and the blank Browser window. I have gone over my code but have never seen any behavior quite like this. Does anyone know what will cause a new browser window to open up, but still open Adobe Acrobat outside of the browser? Any thoughts on why this is happening?
My code is as follows:
JBoss Seam Link:
here is the heart of the Print Report Bean's method:
Here is the entire method incase you need to see the context of the snippet above.