Packaging Facelets files (templates, includes, composites) in a JAR

Viewed 16625

Is it possible to put JSF2 Facelets files with common content into a JAR to use it from other web applications inside e.g. <ui:composition template>, <ui:include src>, <cc:implementation>, etc? If yes, how can I achieve this? Is some extra configuration necessary?

4 Answers

Maven

Note that, if you are using Maven to create a JAR, you should use the following folder to put your resources into:

src/main/resources/META-INF/resources/
Related