I try to configure an application with jsf2 + richafaces 4. I have several portlets and they work perfectly the first time but when I use AJAX functions, go to another portlet and return to the porlet when I executed the AJAX function, the browser's console shows "Uncaught ReferenceError: RichFaces is not defined". I don't understand what happens.
I attach web.xml, faces-config.xml, gatein-resources.xml, the .xhtml with their scripts. If you need anything else please, tell me.
It's my first experience with JSF and gatein and appreciate any advice besides the answer to the problem, jajaja.