You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Federico Fanton <ff...@ibc.it> on 2008/08/20 11:52:25 UTC

"Document is null or not an object" after PDF from ModalWindow

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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: "Document is null or not an object" after PDF from ModalWindow

Posted by Federico Fanton <ff...@ibc.it>.
On Fri, 22 Aug 2008 05:43:28 +0300
Timo Rantalaiho <Ti...@ri.fi> wrote:

> On Thu, 21 Aug 2008, Federico Fanton wrote:
> > Should I open a JIRA issue?
> 
> Yes please, with all this information and the quickstart
> attached.

Thanks :) Here it is https://issues.apache.org/jira/browse/WICKET-1798

> If it only fails on IE7 it sounds like an IE7 compatibility bug.

I hope I'm not doing Something Wrong X-)
Thanks for your help!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: "Document is null or not an object" after PDF from ModalWindow

Posted by Timo Rantalaiho <Ti...@ri.fi>.
On Thu, 21 Aug 2008, Federico Fanton wrote:
> Should I open a JIRA issue?

Yes please, with all this information and the quickstart
attached. If it only fails on IE7 it sounds like an IE7
compatibility bug.

Best wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: "Document is null or not an object" after PDF from ModalWindow

Posted by Federico Fanton <ff...@ibc.it>.
On Wed, 20 Aug 2008 12:11:49 +0200
Federico Fanton <ff...@ibc.it> wrote:

> Sorry, forgot to mention: I'm using Wicket 1.3.4, and 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

I wrote a little Quickstart that shows the problem, there's a running instance here:
http://80.66.211.218:8080/testpdf

Should I open a JIRA issue?
As always, many thanks for your time!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: "Document is null or not an object" after PDF from ModalWindow

Posted by Federico Fanton <ff...@ibc.it>.
Sorry, forgot to mention: I'm using Wicket 1.3.4, and 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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org