You can also use the weblets project (see https://weblets.dev.java.net/).
You store some resources in a JAR library (such as images, css, javascript...) and you write a really simple weblet-config.xml. Then in the JSF page, you can refer them directly with this syntax: