On Thu, 19 Feb 2015 12:28:02 -0200, Poggenpohl, Daniel
<daniel.poggenp...@isst.fraunhofer.de> wrote:
Hello,
Hi!
well, embedding the component in a page shows not the PDF but the Java
object identity, e.g.
InlineViewingStreamResponse@8173c6
Maybe the error is somewhere else?
My component template is basically only ${showDocument()}.
${} always works by outputting the result of calling toString() in the
object returned by the expression inside it.
You're trying to embed binary content (PDF) inside a web page directly.
This will never work.
Re: iframe - If I use an iframe for embedding a document viewer page,
how do I set the "src" parameter? I haven't found a more elegant way
than src="go\back\to\the\folder\containing\the\viewer".
You cannot make the src attribute of <iframe> point to a folder. The src
value is supposed to be the URL of the content to be shown there.
The viewer itself, if you're not letting the browser render the PDF itself
through some browser plugin like Adobe Reader's one, will be some kind of
JavaScript code which will take the URL of the PDF file to be viewed as a
parameter.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org