Hi everyone!
I'm sorry, I need to have the browser open PDFs automatically (no "open or
save" dialogs) and in a new window (either a browser window or the standalone
PDF viewer).
So far I've been using this method:
IResourceStream stream = new ByteArrayResource("application/pdf",
pdf.toByteArray()).getResourceStream();
RequestCycle.get().setRequestTarget(new ResourceStreamRequestTarget(stream));
Everything works fine with Firefox 2 (on Ubuntu and on XPsp2), and even on IE7
most of the times, but if I try to open a PDF from a submit Button in a
ModalWindow, IE7 starts throwing weird javascript errors ("document is null or
not an object" *_*; ) and basically AJAX stops working..
I'm using Acrobat 8.1.2 with "show PDF in browser" disabled.. Any ideas of
what's going on?
Many thanks for your attention!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]