There is a very good article on JSF resource libraries: What is the JSF resource library for and how should it be used?
I'm implementing a simple JSF wrapper for a existing JS library. This library is referencing some images and provide a function setImagePath:
setImagePath("/test/javax.faces.resource/img/");
This is a first step to access the JSF resource library. Obviously I need a suffix like
.jsf?ln=xxx
to access the resource library. Unfortunately the JS library does not provide a setImageSuffix. If I modify the JS library and add this suffix manually to all images it works, but that's not a ideal solution.
Is there any to access my xxx
resource library with setImagePath only?