On 3/7/06, Anthony Hong <[EMAIL PROTECTED]> wrote:
> I have add filter, after that it also dosen't work.
> I saw javascript and css has been added back in returned html.
>
> The myfaces website said I don't have to do any other configuration
> after configure this filter, it will fetch js, css resource from
> myfaces.jar automaticly.
>
> Should I have to put a directory /faces/myFacesExtensionResource/* explicitly?

The extension filter does two things and requires two mappings.

The first thing it does is adding javascript and css to your returned
html.   This mapping must match your JSF servlet mapping.

The second thing it does is to return static resources like javascript
files and css files.  These are the files which are referenced by your
returned html.    URLs that contain /faces/myFacesExtensionResource/*
are used to serve these resource files out of the Tomahawk jar files. 
 It sounds like this second servlet mapping (which must map to
/faces/myFacesExtensionResource/* or /faces/*) is what you are
missing.

Try to manually fetch something like
/webapp/faces/myFacesExtensionResource/tabbedpane.HtmlTabbedPaneRenderer/11302665/defaultStyles.css
in your web browser (just use one of the links generated by your
returned html) and verify that the correct static resource file is
returned.

Reply via email to