Hello,
I'm trying to pass custom resource arguments to a sandbox component, but I get an warning:
{code}01:11:35,796 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-9) JSF1064: Unable to find or serve resource, org.richfaces.staticResource/4.1.0.Final/Packed/org.richfaces.renderkit.html.images.PageFooterGradient{width=200,height=300,gradientHeight=200,baseColorParam=headerGradientColor,gradientColorParam=headerBackgroundColor,horizontal=false}.{code}
I have created a file named custom-mappings.properties which gets deployed to WEB-INF/classes/META_INF/custom-mappings.properties containing a single line:
{code}org.richfaces.images\:pageFooterGradient.png=org.richfaces.renderkit.html.images.PageFooterGradient{width=200,height=300,gradientHeight=200,baseColorParam=headerGradientColor,gradientColorParam=headerBackgroundColor,horizontal=false}{code}
It doesn't seem to be picked up.
Here's my relevant web.xml custom resource setup:
{code:xml} ...
<context-param>
<param-name>org.richfaces.resourceMapping.enabled</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.resourceMapping.mappingFile</param-name>
<param-value>META-INF/custom-mappings.properties</param-value>
</context-param>
...
<servlet>
<servlet-name>Resource Servlet</servlet-name>
<servlet-class>org.richfaces.webapp.ResourceServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Resource Servlet</servlet-name>
<url-pattern>/org.richfaces.resources/*</url-pattern>
</servlet-mapping>
...{code}
What's wrong here? I was following http://docs.jboss.org/richfaces/latest_4_X/Developer_Guide/en-US/html/chap-Developer_Guide-Advanced_features.html#sect-Developer_Guide-Advanced_features-Configuring_ResourceServlet but omitted the org.richfaces.resourceMapping.location as I didn't think that I need it.
Can anyone help?
Karsten