After seeing the new theme of prime facese, I tried to make a demo using the new theme arhitecture, but had some problem with loading the images of the theme.
The demo was using 2.1.RC1-SNAPSHOT from maven repository, and jsf 2.0.2 from mojarra, and the project structure looks like
Code: Select all
src
|-- main
|-- java
|-- resources
|-- webapp
|-- WEB-INF
|-- resources
`-- themes
`-- ui-lightness
|-- images // the images are located here
`-- skin.css
Code: Select all
<h:outputStylesheet library="themes" name="ui-lightness/skin.css" />
Code: Select all
http://localhost:8080/mavenproject1/faces/javax.faces.resource/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
I used to make a workaround by changing the css file, for example, the original
Code: Select all
url(images/ui-bg_glass_100_f6f6f6_1x400.png)
Code: Select all
url(#{request.contextPath}/resources/themes/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png)