How to integrate jQuery with Tapestry 5.
Unfortunatly it is not possible to use a current jQuery release out of the box with Tapestry 5. But only one small step is necessary to make them play together well.
1. Download the current jQuery release. Be sure to use the minimized version for production use
2. Open the file and append jQuery.noConflict(); on a separate line at the very end of the file
Your file should look like this:
Unfortunatly the $ name is still reserved for Prototype. The jQuery documentation has more information on how to overcome this limitation.
Creating a Component Library
You may want to create a component library for your adjusted jQuery source and the most useful plugins that you'll need in your projects. If you don't know how to do that, see Tapestry5HowToCreateYourOwnComponentLibrary
We have choosen to create a library that contains jQuery core, the UI plugin and the well known form plugin. Using any of these is as simple as this: