webtier@glassfish.java.net

Re: Display PDF in JSF page

From: Jason Lee <jason.d.lee_at_oracle.com>
Date: Sat, 21 May 2011 11:23:28 -0500

I don't the code handy at the moment, but I think you can also use an
<object> tag on the page, passing a ValueExpression to the src (?)
attribute that returns the bytes of the PDF.

On 5/21/11 7:35 AM, John Yeary wrote:
> You can try using frames. We experimented with it, but determined that
> it was better to have it as a popup, or a separate page.
>
> On Fri, May 20, 2011 at 1:04 PM, <forums_at_java.net
> <mailto:forums_at_java.net>> wrote:
>
> Thank you, rogerk!
>
> I have tried the example and it works for my case, except that I
> want to
> display the PDF in my current browser window instead of popup a
> new one.
>
> Do you have any idea of how to do this?
>
>
> --
>
> [Message sent by forum member 'hezjing']
>
>
> View Post: http://forums.java.net/node/804678
>
>
>
>
>
> --
> John Yeary
> --
> http://javaevangelist.blogspot.com
> http://www.johnyeary.com
> *_at_jyeary*
>
> "Far better it is to dare mighty things, to win glorious triumphs,
> even though checkered by failure, than to take rank with those poor
> spirits who neither enjoy much nor suffer much, because they live in
> the gray twilight that knows not victory nor defeat."
> -- Theodore Roosevelt


-- 
Jason Lee 
Senior Member of Technical Staff
GlassFish REST API / Administration Console
Oracle Corporation
Phone +1 405-216-3193
Blog http://blogs.steeplesoft.com