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
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
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
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
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
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
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
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
;
> 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