[ http://issues.apache.org/jira/browse/TOMAHAWK-823?page=all ]
Gabriel Enriquez resolved TOMAHAWK-823.
---------------------------------------
Fix Version/s: 1.1.3
Resolution: Fixed
Order of the filter-mapping affects when used with other frameworks.
Just remember the response has to had HEADER element when extensionsFilter is
invoked.
Thanks,
Gabriel
> ExtensionsFilter not working
> ----------------------------
>
> Key: TOMAHAWK-823
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-823
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: JS Cook Menu
> Affects Versions: 1.1.3
> Environment: Application server: Apache Tomcat/5.5.16, WinXP
> Professional
> Reporter: Gabriel Enriquez
> Fix For: 1.1.3
>
>
> I've been trying to use the jscookMenu as following,
> <h:form>
> <t:jscookMenu layout="hbr" theme="ThemeOffice">
> <%/* Availaible jscookMenu themes: ThemeIE,
> ThemeMiniBlack,ThemeOffice, ThemePanel
> Availaible jscookMenu layout: hbr, hbl, hur, hul, vbr,vbl,
> vur, vul
> respect to Heng Yuan
> http://www.cs.ucla.edu/~heng/JSCookMenu
> */%>
> <t:navigationMenuItems value="#{appMenuBean.navItems}"
> />
> </t:jscookMenu>
> </h:form>
> then getting the next exception:
> java.lang.IllegalStateException: ExtensionsFilter not correctly configured.
> JSF
> mapping missing. JSF pages not covered. Please see:
> http://myfaces.apache.org/to
> mahawk/extensionsFilter.html
> ...
> I already checked my web.xml to make sure is as the documentation (i removed
> others for brevity):
> ...
> <context-param>
> <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
> <param-value>true</param-value>
> </context-param>
> ...
> <filter>
> <filter-name>MyFacesExtensionsFilter</filter-name>
>
> <!--filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class-->
>
> <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
> <init-param>
> <param-name>maxFileSize</param-name>
> <param-value>20m</param-value>
> <description>Set the size limit for uploaded files.
> Format: 10 - 10 bytes
> 10k - 10 KB
> 10m - 10 MB
> 1g - 1 GB
> </description>
> </init-param>
> </filter>
> ...
> <filter-mapping>
> <filter-name>MyFacesExtensionsFilter</filter-name>
> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
> </filter-mapping>
>
> <filter-mapping>
> <filter-name>MyFacesExtensionsFilter</filter-name>
> <servlet-name>Faces Servlet</servlet-name>
> </filter-mapping>
> ...
> <servlet>
> <servlet-name>Faces Servlet</servlet-name>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>Faces Servlet</servlet-name>
> <url-pattern>*.jsf</url-pattern>
> </servlet-mapping>
> ...
> I have tried both:
> org.apache.myfaces.webapp.filter.ExtensionsFilter AND
> org.apache.myfaces.component.html.util.ExtensionsFilter
> BUT either working.
> Also,
> with this context parameter:
> org.apache.myfaces.CHECK_EXTENSIONS_FILTER set to true, i got the exception
> previously mentioned.
> If I set to false, I get a JS error on the client.
> I am using:
> myfaces-core-1.1.4
> tomahawk-1.1.3
> myfaces-impl-1.1.4.jar
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira