Remove all styling from Primefaces components?

Set primefaces.THEME context parameter to none and you’ll get a functional ui with no styles.

<context-param>
    <param-name>primefaces.THEME</param-name>
    <param-value>none</param-value>
</context-param>

You don’t need to spend hours editing styles. Styling of PrimeFaces is done via shared styles like ui-widget-header, ui-widget-content which you can customize via the themeroller web form. I don’t think JSF and theming can get any easier than PrimeFaces.

Leave a Comment