Overwriting default CSS styles in Primefaces 5.x

To overwrite the CSS used by primefaces 5.x with your own CSS styles you need to define a Facet named "last" this will be interpretated by primefaces as last. Defining the new sytlesheet resource as child of this facet will result in a stylesheet loaded after all default stylesheet files allowing to override given styles with your custom styles.

The confusing part is the reference to the stylesheet. It´s expected in <web-root>/resources/css/custom.css:

Then the css file should be found by primefaces…

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.