How to use JSF extension library as OSGI bundle
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.
您必须在primefaces-p.taglib.xml
文件中复制并粘贴标签声明,并查看本教程中如何创建自定义标签。
Is the WAB bundle an OSGi bundle too? If it is, you should simply import the packages you need in the manifest file of the WAB bundle. Include the packages by listing them under the Import-Package: entry. This should make them visible to the whole WAB bundle.
链接地址: http://www.djcxy.com/p/74654.html上一篇: 如何从Web项目创建一个war和jar?
下一篇: 如何使用JSF扩展库作为OSGI包