I am trying to use some Primefaces functionality in my existing application. I do not want Primefaces to mess with my existing CSS now, so I have tried to disable the theme in my web.xml
:
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>none</param-value>
</context-param>
However, PrimeFaces is still rendering all sort of ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-left
in my elements, which affects my current CSS styles. I do not think it is a good nor elegant solution to move my CSS to the body, and I don't think it is a good solution to use !important
either. How can I stop PrimeFaces from inserting all sort of undesired styles?