users@glassfish.java.net

Re: Providing facelets (xhtml) from jar file (e.g. OSGi bundle)Providing facelets (xhtml) from jar file (e.g. OSGi bundle)

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Thu, 03 Mar 2011 10:31:31 +0530

If you are using WABs then you may like to try putting your xhtmls in a
bundle fragment attaching to the WAB. You should put them in
META-INF/resources/ directory of the bundle fragment jar.

Sahoo
On Monday 28 February 2011 05:34 PM, benno.luthiger_at_id.ethz.ch wrote:
> Hello
>
> Is it possible to provide facelets (xhtml files) from jar files, e.g.
> OSGi bundles?
> If yes, could you give me some hints how to achieve this best?
>
> I’ve looked through the code but I couldn’t make a strike so far. I’ve
> got the impression that glassfish (or mojarra) uses JNDI to lookup the
> xhtml resources in the file system. But I couldn’t figure out how to
> intercept for that JSF could lookup facelets in jar files in an
> analogous way.
>
> Regards,
> Benno
>