Grails Development Made Even Simpler Using NetBeans IDE 6.5 (Meera Subbarao)
Grails, Meera Subbarao, NetBeans July 21st, 2008
Meera Subbarao writes about her latest testing of Groovy/Grails support with NetBeans 6.5. You may remember Meera from a previous post (Highlights of Beginning Groovy and Grails: From Novice to Professional). She notes that this particular test began as a means to corroborate what Beginning Groovy and Grails proposes: Groovy and Grails increase your productivity. But to have a good level of productivity you require tools, given that Geertjan’s NetBeans to Grails guide was posted during the weekend, she decided to give it a try. In her own words:
After having read the book Beginning Groovy and Grails: From Novice to Professional, I was wondering if it was ever going to be as simple as a few clicks in any IDE for Grails development. Just yesterday, I read an article by Geertjan Wielenga(who is also my colleague at Javalobby/DZone) about how to get started with Grails in NetBeans IDE 6.5 in 5 simple steps. I had worked with NetBeans quite a lot for EJB3 development but I had never used it for either Groovy or Grails; the choice earlier was always Eclipse IDE.
I first followed the Book Demo and later moved to a more real life example. This was a litmus test which I thought NetBeans had to pass for developers to continue using the same for Groovy/Grails development. The example in the book has a few relationships; which is what we would generally have in any enterprise application.
I was able to create all the domain classes, controllers, manage relationships without ever leaving the IDE. Creating a Domain class or even a Controller, is as simple as right clicking on the appropriate nodes and providing meaningful names. The IDE creates the skeleton classes; we need to provide the meat withinIf you are a Groovy or a Grails fan, download the latest version of NetBeans and give it a try. You can develop, test and run your Grails application without ever opening a command window. The Groovy editor has basic coloring, formatting and bracket completion. The GSP editor has coloring, highlighting of GSP tags, expressions and scriptlets. You can mix and match Java and Groovy as well.
Tags: Grails, Meera Subbarao, NetBeans

About