Hi Per,
I don't think you could use InlineFrame class to show a PDF in an iframe. I
just built a DocumentInlineFrame class, inspired on InlineFrame, that allows
to render a Resource (see attached files). To view the example all you have
to do is:
1- <span wicket:id="pdfpanel"></span>
2- add(new MyPdfPanel("pdfpanel"));
3- and drop a pdf file test.pdf on the same package as class MyPdfResource.
Hope this example is of some help. Maybe the class DocumentInlineFrame.java,
or some improved version of it, can be included as part of wicket
distribution?
Best,
Ernesto
References
http://www.nabble.com/file/p21704182/MyPdfResource.java MyPdfResource.java
http://www.nabble.com/file/p21704182/MyPdfPanel.html MyPdfPanel.html
http://www.nabble.com/file/p21704182/MyPdfPanel.java MyPdfPanel.java
http://www.nabble.com/file/p21704182/DocumentInlineFrame.java
DocumentInlineFrame.java
Newgro wrote:
>
> And how should i add the pdf?
> Page.add(InlineFrame.add(???));
>
> That is exactly hte problem i can't get over.
>
> Thanks for helping me
> Per
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://www.nabble.com/Example-for-presenting-pdf-in-modal-window-tp21666757p21704182.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]