• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reference .jar file in faces-config

 
Ranch Hand
Posts: 99
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just had to import it in the lib folder of web inf
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic