I have not done a lot of Grails programming for a couple of years. I am currently working on converting and updating an application I wrote in 1.3.7 to 2.1, I am actually using the original application as a template to re-write the whole application. In the original application I used jQuery so my custom javascripts are all written for jQuery. I was really happy to learn that 2.1 used jQuery by default. I thought that I could simply include my existing custom application javascript and they would work but they are not. I have an alert in "$(document).ready(function ()" but the alert never comes up unless I explicitly include the javasctipt in the GSP <r:require modules="jquery, customer"/>, I am using resources to manage my resources and customer is mu custom javascript for the page I am currently working on. I have tried using the following in the ApplicationResources.groovy but it didn't help either.
modules = {
defaultPageDependencies {
dependsOn 'jquery'
}
I remember back when I started the original application it took some time to figure out which plugins to use and how to get them in and working correctly. I am hoping now that there is something that can help speed this along with 2.1 because I don't want to spend weeks figuring out which plugin is the best to use with 2.1. For instance one of the problems I found is that when I included blueprint in the new 2.1 application my pages all moved to the left instead of being centered, the background color changed and the fonts all changed. It really didn't look that good.
Questions:
1. What am I doing wrong to get the jQuery libs included by default?
2. Is there a document/wiki or something that helps select plugins for 2.1, most in the plugins page are listed for pre 2.0? Advice for plugins are appreciated.
Any other information to understand the workings of 2.1 and its differences from 1.3.7 is appreciated, I have read the 2.0 guide I am looking for something more advanced.
--
Dru Devore