How to use JSF component library with OSGI
I have a very specific questions about using JSF and component libraries.
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.
There are several ways to integrate JSF and Primefaces which I want to ask how to atchieve:
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?
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?
Deploy Primefaces.jar
as OSGI bundle in Glassfish. Copy the tags declaration from primefaces-p.taglib.xml
. And also take a look at this tutorial how to create custom tags. I'm not sure but you also need to copy/paste the JS, css and pictures into you bundle.
上一篇: 如何使用JSF扩展库作为OSGI包
下一篇: 如何在OSGI中使用JSF组件库