Our approach to the resourceresolver chaining problem and 2 questions about ResourceResolvers
We created a ResourceResolver that you specify in web.xml, as usual, but it can "chain" the capabilities of other resolvers. In that resolver we use the Java 6 API for Jar service loading, the ServiceLoader class, to find all "PrefixResourceResolver" classes. That interface supports resolveUrl and a method called getPrefix(), which returns something like "resource" or "generator". The different resolvers have special abilities depending on what we need.
Q1)
We are curious if there is going to be support for this kind of chaining/service lookup in JSF 2. If so we can simplify our structure.
Q2)
Also has anyone run into a problem specifically with Websphere 7 where the existence of a custom ResourceResolver in web.xml causes problems like this:
[4/22/09 11:20:32:728 PDT] 00000024 facelet I Facelet[/index.xhtml] was modified @ 11:20:32 AM, flushing component applied @ 11:20:32 AM
It makes our Ajax 4 JSF pages to not display correctly. If I remove the resourceresolver the problem goes away completely.
Thanks,
Ravi Luthra