I’m developing a web application with Tomcat 7 and JSF with Primefaces components. I have some troubles because the local server doesn’t execute any ajax event, neither the simplest one.
I want to know if there is some configuration to be done to use JQuery, that is needed by Primefaces, on Tomcat. Do I have also to include JQuery libraries on my Eclipse project?
Tomcathas nothing to do with theJQuery. If you are already usingPrimeFacesit hasJQueryby it self, you just need to import it properly into your head section ofXHTMLpage. For e.g. I am usingJQueryfromPrimeFacesand I have constructed the followingXHTMLhead:This:
line will import the
JQueryfromPrimeFacesand you will be able to use it in your project. Don’t forget to remove all otherJQuerylibraries from you project and use only one which comes fromPrimeFaces.