Hi there!
I've a little question about using images in different skins.
For my web app I created a custom skin via the cdk and maven for each of my customer (it was not enough to customize the skin.properties file).
And when a user loggs in, the web app automatically changes its LnF to the suitable skin for the customer to wich the user belongs.
This is done with the following configuration entry:
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>#{skinBean.skin}</param-value>
</context-param>
Up to this point everything works and is just fine.
Now I want to do the following:
I would like to provide a set of default images that will be used for the application independent of a selected customer skin. But if a customer has a special image then this image shall be used.
At the moment the images are located within my web app outside the skin jars (where foo.gif is the same image!):
WebContent
|- app
| |- images
| | |- customer_X
| | | |- foo.gif
| | | |- bar1.gif
| | |- customer_Y
| | |- foo.gif
| | | |- bar2.gif
| |- main.xhtml
|- WEB-INF
To reduce the number of redundant images I would like to have the same cascading technique with images as we have with resource bundles and locales... (lang_en.properties; lang_en_US.properties; lang_en_US_variant.properties)
Something like:
WebContent
|- app
| |- images
| | |- common
| | | |- foo.gif
| | |- customer_X
| | | |- bar1.gif
| | |- customer_Y
| | | |- bar2.gif
| |- main.xhtml
|- WEB-INF
My Questions:
1. Is this possible?
2. Where should the images be located in the web app? In "WEB-INF/classes/" or is the existing location stated above OK?
3. Or do I have to pack the complete set of images into each skin-jar rather than deploying them outside?
Thanks for your help!
Kind regards!