home.


JSF2: Resources

We can reference resource we put in a ‘resources’ directory in the main ‘web’ or ‘webapp’ directory of your project. The css include below is in the subdirectory ‘css’, and the image is in the subdirectory images.

<h:outputStylesheet library="css" name="default.css"/>
...
<h:graphicImage value="#{resource['images:animage.png']}"/>

Tags: jsf | jsf-resources
Posted: Saturday 23 March 2013, 8:48PM

Edit on Github!
comments powered by Disqus