incubator-adffaces-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <>
Subject Re: Serving dynamic image using Trinidad?
Date Wed, 28 Feb 2007 17:08:35 GMT
Hello Jochen,

the Trinidad ResourceServlet ([1]) already is in charge for serving
images, like those included in the skinning (stored somewhere in the
JAR). The Servlet uses the ResourceLoader-API ([2]). Take a look at
the subclasses of ResourceLoader (like DynamicResourceLoader), perhaps
there is something you need in it.

BTW. a wiki page is always appreciated ;-)



On 2/28/07, Böhringer Jochen <> wrote:
> Sorry, for sending my question again. But I have seen that I have sent it digitally signed.
And I am not shure if this works for some of you reading the messages with a web interface.
So here again:
> Hello,
> I have a page which includes two images. But the two images are not deployed
> with the application. They are created at runtime depending on the user's
> input. I can see two options how to include them in my page:
> 1.) Store them temporarily on the disk of the server in the webpath and
> include the link to the temporary file in an tr:image tag.
> 2.) I have the byte[] content of the jpg image in a managed bean on the
> server. I could use a resource mechanism like the tomahawk resource filter
> to add the resource and include the path to the resource filter using the
> tr:image tag.
> I would prefer to use option 2, but I didn't combined Trinidad and Tomahawk
> in this web app till now. And if I don't have to do it I would prefer not to
> do so. I think, that the Trinidad Resource Filter works in a similar way to
> include css and javascript files. Can I use the Trinidad filter to add my
> own resources? Any documentation on this in the wiki, or the web? I haven't
> found something yet.
> Any help would be greatly appreciated!
> Regards
> Jochen

Matthias Wessendorf

further stuff:
mail: mwessendorf-at-gmail-dot-com

View raw message