JSF2: Exposing dynamic content as a Resource?
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?