This content has been marked as final.
Show 3 replies
-
1. Re: Spread xhtmls across jars?
barakka Oct 10, 2009 3:48 PM (in response to stephanos)Hi,
you basically want to follow the same approach used by the Seam wiki plugin architecture. There should be an article here on the seam web site, but I can't seem to find it anymore.
Anyway, the solution is to create a custom facelet resource resolver (implementing the ResourceResolver interface) which will load the xhtml pages from the whole application classpath. You install it in your web.xml like this:
<context-param> <param-name>facelets.RESOURCE_RESOLVER</param-name> <param-value>es.tsbsoluciones.platform.utils.web.ClasspathResourceResolver</param-value> </context-param>
I'm quite sure there are several posts that explain the issues involved, but again, this morning it seems I'm out of luck with the site search engine.
Best,
Riccardo. -
2. Re: Spread xhtmls across jars?
stephanos Oct 10, 2009 4:15 PM (in response to stephanos)Thanks for the tip! I'll look into it.
-
3. Re: Spread xhtmls across jars?
muhviehstarr Oct 11, 2009 4:13 PM (in response to stephanos)Pay attention that this is only respected by Facelets for xhtml-files and is not useable for other resources like css, images and so on.