2014-05-17 105 views
3

我使用Maven來下載ICEfaces依賴更改主題在ICEfaces的:如何3

<dependency> 
    <groupId>org.icefaces</groupId> 
    <artifactId>icefaces</artifactId> 
    <version>3.3.0</version> 
</dependency> 
<dependency> 
    <groupId>org.icefaces</groupId> 
    <artifactId>icefaces-compat</artifactId> 
    <version>3.3.0</version> 
</dependency> 
<dependency> 
    <groupId>org.icefaces</groupId> 
    <artifactId>icefaces-facelets</artifactId> 
    <version>1.8.2</version> 
</dependency> 

我檢查了二進制文件,並從官方ICEfaces的網站資源,無論是zip文件不包含其中包含xmlhttp文件夾主題的CSS文件。

添加在web.xml文件中的以下不會改變任何東西:

<context-param> 
    <param-name>org.icefaces.ace.theme</param-name> 
    <param-value>rime</param-value> 
</context-param> 
+1

我從來沒有使用ICEfaces的,但通過它看起來像主題的文檔會只支持ACE組件,而不是ICE(compat),使得你有分量在你的依賴關係中。任何你不使用ACE的原因,因爲ICE似乎是遺留的? –

+0

@PredragMaric該應用程序的一大部分是使用ICEfaces 1.7構建的,我正在升級到版本3,我想避免更改標記和代碼。 –

回答

0

您可以加載樣式資源的每一頁在您的應用程序與普通<link>標籤或JSF <h:outputStylesheet>組件。

rime和山姆主題的造型資源(圖片和theme.css文件)可以在icefaces/icefaces-ace-3.0.0.jar.zip中找到。

霧凇主題的目錄是:

META-INF/resources/icefaces.ace/themes/rime/