aspose file tools*
The moose likes Groovy and the fly likes What's new in Grails 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "What Watch "What New topic
Author

What's new in Grails 1.2

Paras Jain
Ranch Hand

Joined: Feb 26, 2005
Posts: 137
Hi Dave,

What do you think are the most important features coming up in Grails 1.2?


Regards,
Paras


Paras Jain
SCJP 5.0
Dave Klein
author
Ranch Hand

Joined: Aug 29, 2007
Posts: 77
Hi Paras,

I think the most important changes in Grails 1.2 are the inclusion of Spring 3.0 and the pre-compilation of GSPs when building a .war.

These aren't my favorites (I'll get to those in a moment), but they are important. The Spring 3 inclusion will allow the use a several new Spring annotations which will make it much easier to integrate existing Spring MVC apps with Grails. The compilation of GSPs in a .war will eliminate the lag on the first access of a page and, more importantly, reduce the use of permgen space in Grails applications.

Oh, another important Spring related improvement in 1.2, which is also one of my favorites, is method level transaction support in services. So we will be able to have some methods in a service be transactional and others not. And we get more control over the transaction properties too!

Some of my favorite improvements are: failOnError - Passing failOnError:true to a domainInstance.save() call will cause an exception to raised if the instance can't be saved. This can be helpful in a lot of areas, but I am especially looking forward to it in bootstrap.groovy, which I use extensively in development. Another improvement that related to bootstraping, is environments in bootstrap.groovy. Inside the init block we will be able to declare separate code blocks per environment. The code to do environment specific stuff now is not difficult but this will be much cleaner. Another one that I am looking forward to is the improved Boolean dynamic finders. Instead of:
We will be able to do something more like:
Again, not a big thing but very nice.

There's a bunch more and I would encourage you to check out the release notes http://grails.org/1.2-M4+Release+Notes and then download the milestone http://grails.org/Download and take it for a spin. The more people that test it now, the better shape it will be in when released.

Dave
Paras Jain
Ranch Hand

Joined: Feb 26, 2005
Posts: 137
Thanks Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What's new in Grails 1.2