How to pack a component component of Facelets for use in another web application?

Say I created a simple composite component in one of my JSF 2.0 web applications using Facelets. Now I want to use this component in another webapp. Instead of copying the .xhtml file from one application to another, I would like to create a library that I can simply include in each of the webapps.

How do I package components to create a library that can be used for sharing in projects?

+4
source share
1 answer

After a message to the webtier mailing list, I was told that the jar file should have a META-INF / faces-config.xml file that has a root-config root element with version 2.0. Once created, Webapp was able to reference my custom component components.

Mailing list here

+3
source

All Articles