title: How to use JSF component library with OSGI
body: <p>I have a very specific questions about using JSF and component libraries. </p>
  
  <p>I tested to build WAB (OSG-fied WAR) package with Primefaces. It turns out that there are problems in integrating JSF and Primefaces when using OSGI.</p>
  
  <p>There are several ways to integrate JSF and Primefaces which I want to ask how to atchieve:</p>
  
  <ol>
  <li><p>I can build Primefaces.jar as OSGI bundle. I can export the Java methods as services but there are xml configuration files and etc which I suppose I cannot use in separate OSGI bundle. Is this correct or am I wrong?</p></li>
  <li><p>Is it possible to make a custom build of Mojarra with integrated Primefaces components. If I manage to do this I can simply deploy the modified Mojarra as Glassfish module build an use it very simple and efficient. If someone managed to achieve this would you share some information about it?</p></li>
  </ol>