webtier@glassfish.java.net

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

From: Joel Weight <digitaljoel_at_gmail.com>
Date: Tue, 14 Sep 2010 08:26:37 -0600

I know this thread is long dead, but for posterity's sake, I just thought I
would let you know that I implemented a custom ResourceHandler so I could
pull images and css from the database and it does not appear to be
interfering with primefaces. I can't say for rich faces since I don't use
it.

Joel

On Thu, Apr 29, 2010 at 4:41 PM, <webtier_at_javadesktop.org> wrote:

> Trying to determine how best to expose an image kept in a database as a
> resource via JSF2.
>
> Resources as specified look great for serving static content.
>
> Up front, it seems I may have to override the default ResourceHandler. But
> how best to do that portably and without stomping on primefaces/richfaces
> etc is not clear (these seem to provide their own resource handlers as
> well).
>
> Ideally, it would be nice to bind a class implementing 'ResourceBundle' as
> a library visible to the ResourceHandler, where Object's returned by the
> bundle would have a data stream, and a content type.
>
> Any thoughts on how best to do this?
> [Message sent by forum member 'rsitze']
>
> http://forums.java.net/jive/thread.jspa?messageID=399674
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>