How to get an image or js from a JAR in the server in JSF (For a custom component)
问题 I have done a custom JSF component (it looks like a combobox (icefaces selectonemenu)) but it uses a couple of images (png) and a bit of javascript. I jar everything, so then the developers use it as a jar copied in the web-inf/lib folder. The image and the js are just for this custom component, so I can't make them put this image and js in his project, it has to be in MY jar. I jar everything and it works almost great, just the image and the JS, I do not get them to work. I do not know how