Re: JSF2 and content from the classpath?

2011-03-04 Thread Kito Mann
On Fri, Mar 4, 2011 at 11:59 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > is there any example code you know of that you could share? Just copy the CustomResourceResolver and web.xml section from http://ocpsoft.com/opensource/create-common-facelets-jar/. > > And can I have a

Re: JSF2 and content from the classpath?

2011-03-04 Thread Stephen Connolly
is there any example code you know of that you could share? And can I have a pony? ;-) On 4 March 2011 16:56, Kito Mann wrote: > > > On Fri, Mar 4, 2011 at 11:55 AM, Stephen Connolly < > stephen.alan.conno...@gmail.com> wrote: > >> and if this/these .xhtml file(s) are actually facelets pages..

Re: JSF2 and content from the classpath?

2011-03-04 Thread Kito Mann
On Fri, Mar 4, 2011 at 11:55 AM, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > and if this/these .xhtml file(s) are actually facelets pages... will that > work? Yep. > > > On 4 March 2011 16:54, Kito Mann wrote: > >> Hello Stephen, >> >> With JSF 2, you can use the resource hand

Re: JSF2 and content from the classpath?

2011-03-04 Thread Stephen Connolly
and if this/these .xhtml file(s) are actually facelets pages... will that work? On 4 March 2011 16:54, Kito Mann wrote: > Hello Stephen, > > With JSF 2, you can use the resource handling mechanism to load resources > from META-INF/resources -- this works for composite components, images, etc. >

Re: JSF2 and content from the classpath?

2011-03-04 Thread Kito Mann
Hello Stephen, With JSF 2, you can use the resource handling mechanism to load resources from META-INF/resources -- this works for composite components, images, etc. If you want to serve .xhtml files from a JAR, you need to write a custom ResourceResolver, which is a trivial exercise. See: http://

RE: JSF2 and content from the classpath?

2011-03-04 Thread Stephen Connolly
Hi, Just a quick question as I am doing some research. I cannot remember (and my google searches are just turning up far far too much noize) whether it is possible to server content directly from jars on the classpath rather than only from the wars. I'm thinking of a case where you might have a