Re: Streaming a PDF into an iFrame

2019-08-30 Thread Benjamin Chew
Thanks Martin, I will look into that. Ben On Wed, Aug 28, 2019 at 11:01 PM Martin Grigorov wrote: > Hi, > > Check the response headers of PDF. > If chunked transfer encoding is used then maybe you can fix it by providing > explicitly the Content-Lenght in your Wicket code. > > On Thu, Aug 29,

Re: Streaming a PDF into an iFrame

2019-08-28 Thread Martin Grigorov
Hi, Check the response headers of PDF. If chunked transfer encoding is used then maybe you can fix it by providing explicitly the Content-Lenght in your Wicket code. On Thu, Aug 29, 2019 at 12:05 AM Benjamin Chew wrote: > Yes, they are the full PDFs that I'm expecting. > > Ben > > > On Wed, Aug

Re: Streaming a PDF into an iFrame

2019-08-28 Thread Benjamin Chew
Yes, they are the full PDFs that I'm expecting. Ben On Wed, Aug 28, 2019 at 12:34 PM Lon Varscsak wrote: > If it's closing the connection on the PDF pre-maturely, are you getting the > FULL PDF downloaded? > > -Lon > > On Wed, Aug 28, 2019 at 10:14 AM Benjamin Chew > wrote: > > > Hi Sven, > >

Re: Streaming a PDF into an iFrame

2019-08-28 Thread Lon Varscsak
If it's closing the connection on the PDF pre-maturely, are you getting the FULL PDF downloaded? -Lon On Wed, Aug 28, 2019 at 10:14 AM Benjamin Chew wrote: > Hi Sven, > > Hmm... so this seems to be a problem only on specific browsers. > > I'm seeing this on: > - Google Chrome Version 76.0.3809.

Re: Streaming a PDF into an iFrame

2019-08-28 Thread Benjamin Chew
Hi Sven, Hmm... so this seems to be a problem only on specific browsers. I'm seeing this on: - Google Chrome Version 76.0.3809.100 (OS X Mojave & Win 7) - Safari Version 12.1.2 (OS X Mojave) - IE 11 Version 11.0.135 (Win 7) And not seeing this on: - Firefox Quantum 68.0.2 (OS X Mojave) - Firefox

Re: Streaming a PDF into an iFrame

2019-08-28 Thread Sven Meier
Hi Ben, which browser? We had long time problems with IE stopping requests an re-requesting resources without reason. Sven Am 28. August 2019 16:18:23 MESZ schrieb Benjamin Chew : >Thanks, Sven. > >The weird thing is that this is happening during my testing, and I’m >not navigating away from

Re: Streaming a PDF into an iFrame

2019-08-28 Thread Benjamin Chew
Thanks, Sven. The weird thing is that this is happening during my testing, and I’m not navigating away from the page at all... Ben > On Aug 27, 2019, at 11:34 AM, Sven Meier wrote: > > Hi Benjamin, > > this just means that the browser closed the connection before the pdf was > fully loade

Re: Streaming a PDF into an iFrame

2019-08-27 Thread Sven Meier
Hi Benjamin, this just means that the browser closed the connection before the pdf was fully loaded from the server, e.g. if the user switches to a different page before the iframe has finished loading. Nothing you need/can do about it. Have fun Sven On 27.08.19 02:13, Benjamin Chew wrote:

Re: Streaming a PDF into an iFrame

2019-08-26 Thread Benjamin Chew
I said thanks too soon. ;) Now I'm seeing this warning intermittently: org.apache.wicket.protocol.http.servlet.ResponseIOException: org.eclipse.jetty.io.EofException Caused by: org.eclipse.jetty.io.EofException Caused by: java.io.IOException: Broken pipe Is there anything in the DocumentInlineFra

Re: Streaming a PDF into an iFrame

2019-08-23 Thread Benjamin Chew
Thanks, Sven. And thanks Ernesto for writing that example in the first place! Ben On Fri, Aug 23, 2019 at 4:13 AM Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi, > > Thanks for reporting this. I will fix the example and adapt it to wicket > 8.x. > > On Thu, Aug 22, 2019 at 11:05 P

Re: Streaming a PDF into an iFrame

2019-08-23 Thread Ernesto Reinaldo Barreiro
Hi, Thanks for reporting this. I will fix the example and adapt it to wicket 8.x. On Thu, Aug 22, 2019 at 11:05 PM Benjamin Chew wrote: > Hi, > > I'm pretty new to Wicket, and am trying to figure out how to stream a PDF > into an iFrame. I've searched for a solution and come across Ernesto's >

Re: Streaming a PDF into an iFrame

2019-08-23 Thread Sven Meier
Hi Ben, great that you've solved the issue already. Indeed, with that method you tell Wicket not to schedule an AjaxRequestHandler. Sven Am 23. August 2019 00:30:26 MESZ schrieb Benjamin Chew : >I solved this! I added this to the class and it worked: > >@Override >public boolean rendersPage() {

Re: Streaming a PDF into an iFrame

2019-08-22 Thread Benjamin Chew
I solved this! I added this to the class and it worked: @Override public boolean rendersPage() { return false; } Thanks, Ben On Thu, Aug 22, 2019 at 1:33 PM Benjamin Chew wrote: > I forgot to add that this iframe is loaded in an ajax modal of base class > GenericPanel. > > Thanks, > Ben >

Re: Streaming a PDF into an iFrame

2019-08-22 Thread Benjamin Chew
I forgot to add that this iframe is loaded in an ajax modal of base class GenericPanel. Thanks, Ben On Thu, Aug 22, 2019 at 1:04 PM Benjamin Chew wrote: > Hi, > > I'm pretty new to Wicket, and am trying to figure out how to stream a PDF > into an iFrame. I've searched for a solution and come a