webtier@glassfish.java.net

Re: [webtier] JSF2: Exposing dynamic content as a Resource?

From: <webtier_at_javadesktop.org>
Date: Tue, 04 May 2010 15:59:21 PDT

> My 'ideal' would be more direct:
>
> <h:graphicImage
> value="#{resource['myLibrary:myResource']}" ... />
>
> Where myLibrary is mapped to some dynamic resource
> provider (class instance) that can lookup & provide
> the byte stream content representing 'myResource'.
>
> Wouldn't be limited to graphicImages (I'm making an
> assumption based on what I saw in the demo!).

That PDF is served via that component as well, fwiw. Any type of data can be served, as long as you can make the client understand it (via img, object, etc. on the page).

Would this blog entry be more helpful?

http://blogs.steeplesoft.com/2010/05/putting-facelets-in-a-jar/
[Message sent by forum member 'jdlee']

http://forums.java.net/jive/thread.jspa?messageID=403510