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/22 09:16:45 UTC
[jira] Created: (WICKET-1798) "Document is null or not an object"
after PDF from ModalWindow
"Document is null or not an object" after PDF from ModalWindow
--------------------------------------------------------------
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
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.
[jira] Commented: (WICKET-1798) "Document is null or not an object"
after PDF from ModalWindow with IE7
Posted by "Federico Fanton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625786#action_12625786 ]
Federico Fanton commented on WICKET-1798:
-----------------------------------------
After a few tests, it looks like installing "Cumulative security update for Internet Explorer" KB953838 fixes the problem (http://support.microsoft.com/kb/953838)
> "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.
[jira] Updated: (WICKET-1798) "Document is null or not an object"
after PDF from ModalWindow
Posted by "Federico Fanton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Federico Fanton updated WICKET-1798:
------------------------------------
Attachment: testpdf_quickstart.tgz
Quickstart
> "Document is null or not an object" after PDF from ModalWindow
> --------------------------------------------------------------
>
> 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.
[jira] Commented: (WICKET-1798) "Document is null or not an object"
after PDF from ModalWindow with IE7
Posted by "Federico Fanton (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (WICKET-1798) "Document is null or not an object"
after PDF from ModalWindow with IE7
Posted by "Federico Fanton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625991#action_12625991 ]
Federico Fanton commented on WICKET-1798:
-----------------------------------------
Other tests confirm the fix.. I'm not familiar with JIRA's workflow, should I mark the issue Closed?
> "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.
[jira] Closed: (WICKET-1798) "Document is null or not an object"
after PDF from ModalWindow with IE7
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg closed WICKET-1798.
---------------------------------
Resolution: Invalid
Assignee: Igor Vaynberg
> "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
> Assignee: Igor Vaynberg
> 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.
[jira] Updated: (WICKET-1798) "Document is null or not an object"
after PDF from ModalWindow with IE7
Posted by "Federico Fanton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Federico Fanton updated WICKET-1798:
------------------------------------
Summary: "Document is null or not an object" after PDF from ModalWindow with IE7 (was: "Document is null or not an object" after PDF from ModalWindow)
> "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.