Nrusingha
Nrusingha

Reputation: 853

Shared faces-config.xml across web project

I am trying to come up with a common UI framework for my organization. I want to know can I have something called shared faces-config.xml file which can be shared across projects.

Upvotes: 1

Views: 307

Answers (2)

Bozho
Bozho

Reputation: 597016

Place your faces-config.xml in a META-INF folder in the jar root.

If you look at component frameworks (richfaces, tomahawk, etc) - they do it this way.

Upvotes: 0

Zack Marrapese
Zack Marrapese

Reputation: 12080

If you include the faces-config in your JAR, it will be found by any JSF project that you include that JAR within.

Upvotes: 1

Related Questions