> Funny, this thread reminds me 2 years ago at SpringOne, when I finally got a
> lead dev of Grails to admit that SpringMVC was good for building frameworks,
> but certainly not for building applications...

It's interesting to hear Grails mentioned several times (once from me,
I think).   I'm using it in several projects along with Stripes in
several others.   Grails has some great stuff, but at its core it is
amazing how poor the fundamental handling of basic action based
requests is.  Here is an example of a default, autogenerated
controller code for updating an entity in a simple CRUD operation in
Grails:

    def update = {
        def licenseeInstance = Licensee.get( params.id )
        if(licenseeInstance) {
            licenseeInstance.properties = params
            if(!licenseeInstance.hasErrors() && licenseeInstance.save()) {
                flash.message = "Licensee ${params.id} updated"
                redirect(action:show,id:licenseeInstance.id)
            }
            else {
                render(view:'edit',model:[licenseeInstance:licenseeInstance])
            }
        }
        else {
            flash.message = "Licensee not found with id ${params.id}"
            redirect(action:edit,id:params.id)
        }
    }

I've mentioned Stripes a few times on their mailing list to point out
that the above code is 1 - 3 lines in Stripes (assuming you've got
your entities being auto-populated and hibernate committing via
filter) and about 15 in Grails.  Stripes moves all the boiler plate
logic - validation through multiple stages, returning to the source
page if there are errors, etc, out of the core controller and lets you
focus on just exactly what it needs to do.

What's the point of me mentioning this?  Well, mainly I just want to
say that Stripes is still super competitive even against so called RAD
frameworks like Grails.   I would love to see something equivalent to
Grails / Rails that used Stripes.   For my money, the cleanest way to
do it would be to embed Stripes in Grails itself.

Talk is cheap - maybe one day I'll get around to doing this!

Cheers,

Simon

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to