The Artima Developer Community
Sponsored Link

Java Community News
Grails 0.6 Supports Spring Web Flow

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

Grails 0.6 Supports Spring Web Flow Posted: Sep 4, 2007 10:13 AM
Reply to this message Reply
Summary
The Grails project released version 0.6 of its Java and Groovy-based application framework. Grails 0.6 "takes Grails even further away from its Rails-like beginnings," and integrates with Spring Web Flow.
Advertisement

Grails, a dynamic web-application framework based on Java and Groovy, received major new features in its recent 0.6 release. The most notable new capability is integration with Spring Web Flow, providing support for workflows and flow-managed persistence. A feature of Grails 0.6 is a flow-oriented DSL, an example of which is included in the release documentation:

class BookController {
   ...
   def shoppingCartFlow = {
       showCart {
           on("checkout").to "enterPersonalDetails"
           on("continueShopping").to "displayCatalogue"
       }
       ...
       displayCatalogue {
            redirect(controller:"catalogue", action:"show")
       }
       displayInvoice()
   }
}

Integration with Spring Web Flow also provides support for atomic conversations:

Grails integrates Hibernate with Web Flow to allow a single session to be bound for the scope of the conversation thus allowing transactional conversations with support for optimistic locking...

Grails services now support Spring scopes including integration with Web Flow scopes. Web Flow will completely manage the state transitions and Grails integrates Hibernate into the picture to make sure you get atomic conversations.

In addition to workflow scope, Grails also provides "prototype", "singleton", "request", "session", "flash", "flow," and "conversation" scopes as well.

Other features in Grails 0.6 includes RESTful URL support, and a configuration DSL that allows more in-depth customization.

What do you think of Grails as a Web framework?

Topic: Chet Haase Releases Java Timing Framework 1.0 Previous Topic   Next Topic Topic: Google Web Toolkit No Longer in Beta

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use