Mic Nel wrote:
would like to add that I am using primefaces-3.4.2.jar in my workspace
And that is why you have a primefaces jquery URL in your page content. PrimeFaces generated it as part of its View Rendering functionality.
A URL doesn't "link to" anything. It's a resource Locator, and while static resources might appear as "files" within a WAR, that's the default behavior if something smarter doesn't handle it. It's entirely valid for a URL to return data that it synthesizes on the spot.
In this particular case, I
think that the jquery.js.jsf is actually coming from a static resource template found within the PrimeFaces jar, but I'm not 100% certain. PrimeFaces could have created and cached a custom resource based on the client's characteristics (browser brand and version, for example).
As to the "something smarter", note that the URL ends in .jsf. So the FacesServlet is responsible for dispatching the URL to the appropriate rendering service. Definitely NOT a purely static resource reference ("link").
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.