Streaming a PDF into an iFrame

2019-08-22 Thread Benjamin Chew
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 DocumentInlineFrame class here: https://github.com/reiern70/antilia-bits/blob/master/content-iframe/src/main/java/com/antilia/iframe/DocumentInlineF

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 f

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. > > T

Re: Streaming a PDF into an iFrame

2019-08-23 Thread Benjamin Chew
u, 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 > > DocumentInlineFrame cla

Re: Streaming a PDF into an iFrame

2019-08-26 Thread Benjamin Chew
spatcher.writev(SocketDispatcher.java:51) at sun.nio.ch.IOUtil.write(IOUtil.java:148) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:504) at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:266) ... 67 more On Fri, Aug 23, 2019 at 8:16 AM Benjamin Chew wrote: > Thanks, Sve

Re: Streaming a PDF into an iFrame

2019-08-28 Thread Benjamin Chew
df 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: >> I said thanks too soon

Re: Streaming a PDF into an iFrame

2019-08-28 Thread Benjamin Chew
equesting > resources without reason. > > Sven > > Am 28. August 2019 16:18:23 MESZ schrieb Benjamin Chew < > bc...@smarthealth.com>: > >Thanks, Sven. > > > >The weird thing is that this is happening during my testing, and I’m > >not navigating away f

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

Re: Streaming a PDF into an iFrame

2019-08-30 Thread Benjamin Chew
; > 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 28, 2019 at 12:34 PM Lon Varscsak > > wrote: > > > > > If it's clo