digitaljoel
digitaljoel

Reputation: 26574

How do I package a Facelets composite component for use in another web app?

Let's say I've created a simple composite component in one of my JSF 2.0 web applications using Facelets. Now, I want to use that component in another webapp. Rather than copy the .xhtml file from one app to another, I would like to create a library that I can simply include in each of the webapps.

How do I package my composite components to make a library that can be shared across projects?

Upvotes: 4

Views: 1160

Answers (1)

digitaljoel
digitaljoel

Reputation: 26574

After a post to the webtier mailing list I was told that the jar file must have a META-INF/faces-config.xml file that has a root faces-config element with a version of 2.0. After creating that, the webapp was able to reference my custom composite components.

Mailing list thread here

Upvotes: 3

Related Questions