• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reference .jar file in faces-config  RSS feed

 
Cedric Bosch
Ranch Hand
Posts: 99
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made custom renderers that allows JSF to not render inline scripts (that works). Since I wanna put it on github I'd like to put everything in a .jar file so it's easy for other users to use it. Unfortunately I'm inexperienced in that area.

So I made a .jar file containing the needed packages, I imported it in my project. However in order to use the custom renderer the faces-config.xml has to be configured as such :



The problem is that it doesn't seem to find the appropriate classes when the jar is imported while it does find those when the packages are directly in my project.

How can I resolve this ? Maybe it's a dumb question but could I directly include the faces-config somehow in the .jar file?
 
Cedric Bosch
Ranch Hand
Posts: 99
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just had to import it in the lib folder of web inf
 
Tim Holloway
Bartender
Posts: 18716
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, you should just have to put your faces-config snippet in a file named /META-INF/faces-config.xml in the JAR.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!