The moment you start doing real work with Ajax you will find that multiple page elements have to be updated from a single action.
Why I want use GORM standalone in Griffon.
Continue reading »
I’m not sure if I just like HQL (Hibernate Query Language) because it is so close to SQL or because I don’t get the otherwise fabulous Grails HibernateCriteriaBuilder well enough to be sure of some of the more tricky queries. I do enjoy using the criteria builder but seem to hit limitations every so often, perhaps it is just that the type of queries that I happen to be writing lend themselves well to HQL.
Out the box Grails provides two ways to display messages to the user.
JaspeReports is heralded as a great and powerful reporting engine, add to that iReport and a Grails Plugin and we’re all set to go. But beware the learning curve!
Continue reading »
As of Grails-1.2.2 we have a better way to specify JVM options just for Grails!
So now that headless option won’t prevent groovyConsole from starting, yay!
Note: this is for firing Grails up from the command line, not deployment.
Continue reading »
Thanks to the awesome groovy-ness of groovy this is crazy easy!
Continue reading »
Here are some ‘real life’ database connection examples for the MySQL (~5.0) and MSSQL (Microsoft SQL Server 2005 JDBC Driver which can be used on 2003).
Logging is a better way to debug and provide messages than slapping println statements around. Here is an example of a grails config for log4j. This will also place the log file in with the Tomcat logs when you deploy.
It is well advised to place application and business logic in service classes when doing any programming and indeed the Grails user guide does advise this. However the default templates do not do this so there is no example or dare I say it best practice example that I could find on the web. So exactly how do we get the controller and service to interact and retain all the functionality provided by the templates and generate-all?
If you would like to do anything more than idEq when using criteria with id’s you may run into some trouble.