webtier@glassfish.java.net

Re: [webtier] Resource Management in JSF 2.0

From: <webtier_at_javadesktop.org>
Date: Sat, 24 Apr 2010 12:32:06 PDT

> Where is resource1.jar placed in the resource
> directory?
Probably the following blog will be helpful for you.
I used the approach for sharing composite components and it works for me.
http://digitaljoel.wordpress.com/2009/12/14/sharing-jsf-2-composite-components/

> How the jpg file is bound to for example a
> <h:graphicallmage> ?

There is related example in Mojarra source code called "helloworld" included in part "jsf-demo".
Here is a piece from the example:
            <h:graphicImage id="waveImg" url="#{resource['wave.med.gif']}" />

By the way I'm wondering if Joel Weight is the same person who wrote the mentioned above blog :)

Good luck,
Vladimir
[Message sent by forum member 'vladperl']

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