webtier@glassfish.java.net

JSF2: Exposing dynamic content as a Resource?

From: <webtier_at_javadesktop.org>
Date: Thu, 29 Apr 2010 15:41:07 PDT

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