File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Jsf t:JsCookMenu is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Jsf t:JsCookMenu is not working" Watch "Jsf t:JsCookMenu is not working" New topic
Author

Jsf t:JsCookMenu is not working

Praful Sinha
Greenhorn

Joined: Jan 25, 2008
Posts: 18
HI ALL,
I am trying to implement t:jsCookMenu to create menu component in jsf page. But i am getting error as your ExtentionFilter configuration is not proper.

for this even i had mention extention filter configuration in web.xml

<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.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>

<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>

<!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>

does it required any thing else.........

Please help me i am in need.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16471
    
  23

Sorry about the delay.

JSCookMenu is a right royal pain, mostly because the best documentation isn't actually the stuff at apache.org and they assume you know things I didn't, so the "good" documentation is almost all about dynamic menus (which I use ony with great care, since they can confuse users).

Could you post a copy of the error messages? You're on the right general track.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jsf t:JsCookMenu is not working