掲示板

How to exclude primefaces.css from portlet?

9年前 に Fernando Cabrera によって更新されました。

How to exclude primefaces.css from portlet?

Junior Member 投稿: 47 参加年月日: 14/08/01 最新の投稿
Hello everyone!

I want to remove both css files from a primefaces portlet, primefaces.css and theme.css (by default primefaces-aristo)

Exclude theme.css it's simple with context-param in web.xml:

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


But I need help to exclude primefaces.css, this is the context of my situation:

I developed a custom theme with some css rules for primefaces components overriding ui classes. Then I developed a layout template with a primefaces portlet embedded. Themes CSS files are in header, but portlets CSS files are linked in HTML, therefore they have more priority because of the order in HTML page.

Exclude the files makes the work, but maybe there are some other solutions, like moving portlets css also to the header, or maybe another thing.

Any suggestions would be great.

Thanks!
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: How to exclude primefaces.css from portlet?

Liferay Legend 投稿: 14915 参加年月日: 06/09/02 最新の投稿
How about a "patched" primefaces jar that has an empty css file? Allows everything else to be the same, all code continues to function, just won't be serving the overriding css styles.