1
我有一個Maven Web應用程序項目,其中使用了JSF 2.2和Primefaces 5.3組件(Netbeans IDE 8.1)。JSF Primefaces主題更改錯誤
我已經使用Google瞭解如何更改默認主題。 我發現了一些示例如何更改默認主題,但它沒有奏效。
我右鍵單擊了Dependencies文件夾並添加了cupertino主題jar。 由於通常依賴得到了添加到我的pom.xml
<dependency>
<groupId>org.primefaces.themes</groupId>
<artifactId>cupertino</artifactId>
<version>1.0.10</version>
</dependency>
之後,我已經加入到我的web.xml
這一部分:
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>cupertino</param-value>
</context-param>
但現在我已經得到了這個錯誤:
Error loading css, cannot find "theme.css" resource of "primefaces-cupertino" library
我不知道我做錯了什麼。
感謝您的幫助 對不起我的英語
你是天才!非常感謝 – Arman21