myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Enriquez (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TOMAHAWK-823) ExtensionsFilter not working
Date Tue, 19 Dec 2006 01:39:22 GMT
    [ http://issues.apache.org/jira/browse/TOMAHAWK-823?page=comments#action_12459515 ] 
            
Gabriel Enriquez commented on TOMAHAWK-823:
-------------------------------------------

Hey Gary,

Thanks for the tip. It seems that there is some progress on it.

The exception is not thrown anymore with that. Thanks again!

But still not able to render the menu properly;
not it appears a js error:
Error: cmThemeOffice is not defined

And looking at the cliend code, I do not see any .js resource for that variable.

Do you have any idea what is going on?

Thanks again,
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
>
> 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

        

Mime
View raw message