Search code examples
jsfjsf-2icefacesomnifaces

How can I get OmniFaces extensionless URLs and ICEfaces ace:menuItem component to work together?


I'm using extensionless URLs from OmniFaces (2.1) with ICEfaces (3.3) so that my URL's don't require the .jsf suffix. The problem is that one of the ICEfaces components doesn't like this:

<ace:menuBar>
    <ace:submenu label="assets menu">
        <ace:menuItem value="assets" url="assets"/>

The page loads fine and the links work fine, but the following message is flooding my logs:

JSF1091: No mime type could be found for file assets. To resolve this, add a mime-type mapping to the applications web.xml.

It appears that JSF doesn't like that my URL doesn't have an extension. I can't seem to find any setting in web.xml to resolve this.


Solution

  • It looks like the problem is ICEfaces 3.3. I tried this under ICEfaces 4.0 and there are no entries in the logs.