Installing themes
PrimeFaces themes are bundled as JAR files. Community themes are free and available for download at the PrimeFaces repository (http://repository.primefaces.org/org/primefaces/themes). Each theme can be quickly previewed before download at PrimeFaces Theme Gallery (http://primefaces.org/themes) or tested in the PrimeFaces Showcase with an integrated theme switcher.
In this recipe, we will install and configure themes to use them in an JSF application. The steps to accomplish this task are straightforward.
Getting ready
If you are a Maven (http://maven.apache.org) user, ensure that you have Maven installed. Maven is a build and project management tool, which manages installation of all dependencies in an easy way. PrimeFaces is a Maven-based project and offers all artifacts, including themes, as Maven dependencies.
How to do it…
Maven users should define any desired theme artifact in their project's pom.xml
as follows:
<dependency> <groupId>org.primefaces...