2
有誰知道如何在JSF應用程序中配置resource-config.xml。JSF框架中的資源配置
對於新的增強功能,我已經開始配置resource-config.xml,我試着將它放在META-INF文件夾,WEB-INF/classes,java源文件根目錄下。兩個人都沒有爲我工作。資源配置文件即使在構建路徑中也不會被識別。
任何人都可以指導我配置相同的?
在此先感謝。
<?xml version="1.0" encoding="UTF-8"?>
<resource-config>
<resource class="org.richfaces.renderkit.html.images.GrowlBackground">
<name>org.richfaces.renderkit.html.images.GrowlBackground</name>
</resource>
<resource class="org.richfaces.renderkit.html.images.GrowlCloseButton">
<name>org.richfaces.renderkit.html.images.GrowlCloseButton</name>
</resource>
<resource>
<name>org/richfaces/renderkit/html/images/info.png</name>
<path>org/richfaces/renderkit/html/images/info.png</path>
</resource>
<resource>
<name>org/richfaces/renderkit/html/css/jquery.gritter.xcss</name>
<path>org/richfaces/renderkit/html/css/jquery.gritter.xcss</path>
</resource>
<resource>
<name>org/richfaces/renderkit/html/scripts/growl.js</name>
<path>org/richfaces/renderkit/html/scripts/growl.js</path>
</resource>
<resource>
<name>org/richfaces/renderkit/html/images/error.png</name>
<path>org/richfaces/renderkit/html/images/error.png</path>
</resource>
<resource>
<name>org/richfaces/renderkit/html/scripts/jquery/jquery.js</name>
<path>org/richfaces/renderkit/html/scripts/jquery/jquery.js</path>
</resource>
<resource>
<name>org/richfaces/renderkit/html/scripts/jquery.gritter.js</name>
<path>org/richfaces/renderkit/html/scripts/jquery.gritter.js</path>
</resource>
<resource>
<name>org/richfaces/renderkit/html/images/warn.png</name>
<path>org/richfaces/renderkit/html/images/warn.png</path>
</resource>
<resource>
<name>org/richfaces/renderkit/html/images/fatal.png</name>
<path>org/richfaces/renderkit/html/images/fatal.png</path>
</resource>
</resource-config>
您是否在服務器控制檯上發現任何異常? – JSS 2011-02-03 17:09:47
沒有。我的控制檯不會顯示任何異常。我在配置中映射的一些資源沒有在屏幕上加載。 – 2011-02-04 06:48:40