Mike Kienenberger wrote:
I've updated forrest/content/xdocs/tomahawk/extensionsFilter.xml
describing how the filter works and what filter mappings you should
set.
Here's what I'd recommend using. As was mentioned before, you need both:
<!-- 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>
Looks good to me.
<!-- extension mapping for serving page-independent resources
(javascript, stylesheets, images, etc.) -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/*</ url-pattern>
</filter-mapping>
I liked your suggestion of mapping this to
/faces/myFacesExtensionResource/*
This mapping is what I use in the app I'm currently developing, and it
works fine. Is there a reason you changed your mind?
Cheers,
Simon