GroovyMag is a magazine created by Groovy and Grails users and enthusiasts. It has been publishing every month since November 2008 as a pdf.
Spring Batch is one of the youngest part of Spring family. This Framework allows batch processing of huge amount of data providing tools for read, validating and write data, logging, tasks management and resource management as well as parallel computing. Presented example is Groovy application that converts data from hard to read text format to XML.
This time, in this recurrent section, we can learn how scipts in Groovy are implemented. We can read how they are executed and how creators treated local variables and properties in the scripts.
If the database can be used by many users, it can be used also by many applications. Making this sentence happen, author shows us that tough task that is migration to new platform can be easy with Grails. He starts with optimistic locking on old system (in this example it is JBoss), moving forward to mapping DB to domain classes in GORM.
Default GSP pages generated by scaffolding in Grails are very rarely good enough for production systems. It is even worse for views that need to work on both ends of one-to-many relations. Author shows us how this problem can be solved using modal windows and table component. He also propose his own solution that is the best for his example, based on HTML and AJAX.
Grails Functional Test is an alternative to functional tests with Canoo Webtest and Selenium. Its advantages are great integration with Grails testing framework and clear code created. Similar to Canoo Webtest it is using HtmlUnit to emulate web browser.
Translation: Grzegorz Duda
Source: http://www.javaexpress.pl/article/show/GroovyMag_review__June_2009