You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Federico Fanton (JIRA)" <ji...@apache.org> on 2008/08/26 17:00:44 UTC
[jira] Commented: (WICKET-1798) "Document is null or not an object"
after PDF from ModalWindow with IE7
[ https://issues.apache.org/jira/browse/WICKET-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625752#action_12625752 ]
Federico Fanton commented on WICKET-1798:
-----------------------------------------
Same problem with Acrobat 7.0.
> "Document is null or not an object" after PDF from ModalWindow with IE7
> -----------------------------------------------------------------------
>
> Key: WICKET-1798
> URL: https://issues.apache.org/jira/browse/WICKET-1798
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.3.4
> Environment: Windows XPsp2, IE7 and Acrobat 8.1.2 (with "show PDF in browser" disabled)
> Reporter: Federico Fanton
> Attachments: testpdf_quickstart.tgz
>
>
> I'm trying 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 inside a ModalWindow, IE7 starts throwing "document is null or not an object" errors and basically Javascript stops working..
> According to Companion.JS the stacktrace for the error is (most recent call first):
> wicket-ajax.js:51
> wicket-event.js:110
> wicket-event.js:29
> Original discussion: http://www.nabble.com/%22Document-is-null-or-not-an-object%22-after-PDF-from-ModalWindow-td19066121.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.