users@glassfish.java.net

Re: How to include Primefaces tag library from OSGI bundle

From: Peter Penzov <peter.penzov_at_gmail.com>
Date: Mon, 11 Jun 2012 09:57:58 +0300

Ok, I will try it.
  I'm interested why the package javax.faces(Mojarra) when it's placed in
/modules directory and registered in default-web.xml it's visible for JSF
applications and it's used to process the JSF content from packages. When I
do the same thing (copy primefaces.jar in /modules and add the name of the
jar in default-web.xml) it's not visible for JSF applications - the tag
library is not found.
By the way I would like to place primefaces.jar in /modules directory and
use it because I'm not sure but I think I get maximum performance.

On Mon, Jun 11, 2012 at 5:13 AM, Sahoo <sanjeeb.sahoo_at_oracle.com> wrote:

> Only the WAB's content are searched for faces config files. So, you have
> to include primefaces taglib.xml and faces-config.xml in your WAB just as
> you would have done inside your WAR file. i.e., place them in
> WEB-INF/classes/META-INF/ or inside META-INF dir of a jar file in
> WEB-INF/lib/.
>
> If this does not work, then perhaps the only solution is to include the
> entire primefaces inside your WAB as you have already done.
>
> Sahoo
>
>
> On Sunday 10 June 2012 06:13 PM, Peter Penzov wrote:
>
>>
>> I want to use Primefaces library as osgi bundle in JSF application. I
>> created WAB package with JSF pages. I also deployed promefaces.jar as OSGI
>> bundle. I saw into the primefaces.jar that the MANIFEST file is exporting
>> the packages to be visible for other bundles. The question is how I can use
>> the primefaces tags into the the WAB bundle? I'm sure that I need to add
>> configuration into the POM.xml file but I'm not sure how to do it.
>>
>> I successfully tested to include primefaces.jar into the WAB by putting
>> the .jar file into WEB-INF/lib directory but I want to use Primefaces as
>> OSGI resource not as jar resource into the WEB-INF/lib directory.
>>
>>
>> Best Wishes
>>
>>
>