I have this additional mapping
<!-- extension mapping for serving page-independent resources
(javascript, stylesheets, images, etc.) -->
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
Otherwise you maybe experiencing this issue.
http://issues.apache.org/struts/browse/SHALE-409
In desperation I had to build a custom version of shale with this fix applied.
On 5/21/07, AM101 <[EMAIL PROTECTED]> wrote:
When I use t:inputHtml, I get following error:
EVERE: Servlet.service() for servlet faces threw exception
java.lang.IllegalStateException: ExtensionsFilter not correctly configured.
Resource mapping missing. Resources cant be delivered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html
at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:352)
at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
I already configured extension filter in my xml to use with file upload and
file upload works fine.
my web.xml looks like this:
<!-- File Upload Start-->
<filter>
<filter-name>ExtensionsFilter</filter-name>
<!--filter-class>
org.apache.myfaces.component.html.util.ExtensionsFilter
</filter-class-->
<filter-class>
org.apache.myfaces.webapp.filter.ExtensionsFilter
</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>500k</param-value>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>10k</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<servlet-name>faces</servlet-name>
</filter-mapping>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<url-pattern>/forsalebyowner/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ExtensionsFilter</filter-name>
<url-pattern>*.xml</url-pattern>
</filter-mapping>
<!-- File Upload End -->
--
View this message in context:
http://www.nabble.com/problem-using-t%3AinputHtml-tf3789498.html#a10716626
Sent from the Shale - User mailing list archive at Nabble.com.