Grails integrates Hibernate and Spring together, automatically generating
the clue-code of descriptors and general lifecycle / management code that is
necessary for implementation, but not by the application developer.  Groovy
has a lot of strength as a scripting language (that gets compiled down to
byte code), and I think there are some who just prefer the syntax, grammar,
and the types of expressions that have the flavor of Java but the freedom
not commonly associated with it.

But, beyond that, there's the GORM layer, which is the innovation that
"Rails" based application frameworks bring to the table.  I've long joked
about the development of a DWIM function (Do What I Mean), where you
wouldn't have to write a line of code, just define meta-data...  That's
essentially what GORM does.  Most middle tier functionality is focused on
database model accessors, the getters and setters of the database via
entities or domain objects.  Largely, the code one writes to filter result
sets is boilerplate, an idea that Rails architects acknowledged and solved.
For example, you can execute the following method without ever having
implemented it:

gorm.getUserByFirstNameAndZipCode(...)

The runtime will parse the method name using camel-case and naming
conventions, and derive the expected method signature, as well as the
associated business logic to execute.  The result is the desired set of
business objects, and again, you don't have to write a single line of code
other than the definition of your domain objects.  I've looked over the code
that performs the parsing and execution, and there's not a huge price to pay
for it.

Altogether, adding Wicket to a Grails opens a lot of doors.

The only problem with Grails in the past, and the RoR family in general, is
that they've focused on an MVC architecture.  This runs counter to the
Wicket spirit of doing things.  That Graeme was able to demonstrate kicking
the Spring MVC controller out in favor of Wicket proved to me that Grails is
more than a RoR knock-off.  It's a viable model to consider for future
projects.

Still a few things to iron out, but I'm impressed.

-jjk

On 5/17/07, howzat <[EMAIL PROTECTED]> wrote:


Without going into too much detail about how Grails works (I expect there
is
plenty of info on the web about this), could you give us a bit more of an
idea about why this "love-child" is a "cool" idea and how a Wicket user
would benefit from working with Wicket+Grails on top of, for example,
Hibernate & Spring?
What is in Grails that would make Wicket "better" for web-app development?
Is it just the integration of Groovy or is there something more for a
Wicket
user?



jklappenbach wrote:
>
>
http://graemerocher.blogspot.com/2007/05/grails-wicket-wonders-of-grails-plug-in.html
> (SFW)
>
> Graeme pinged me as soon as I got online this morning to tell me about
his
> work on integrating Wicket and Groovy, a Rails implementation based on
the
> Java scripting language, Groovy.
>
> As you'll read, the integration took him *20 minutes*, and the result
was
> the following:
>
>    1. Wicket classes can be utilized as-is from wicket jars inside a
>    Groovy environment, meaning that there's no concern of keeping a
>    Groovy-based mirror of Wicket synchronized.
>    2. Wicket classes can take advantage of GORM, with dynamic methods
>    (This is very, very, cool)
>    3. Developers can take advantage of closures, and all other nice
>    features of Groovy
>
> Graeme warned me that he hadn't tested much more than a "Hello World"
> example.  But in getting even those two simple words out, a lot had to
be
> going on under the hood.  I'd be surprised if there were issues lurking
> beyond.
>
> If you haven't heard of Grails, or would like to know more, I have a
short
> post here at:
>
>
http://tapestryofthoughts.blogspot.com/2007/05/grails-rails-gone-groovy.html
>
> For more in-depth, there's the Grails site at:
>
> http://grails.codehaus.org/
>
> -jjk
>
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/Gricket%3A-The-Love-Child-of-Grails-and-Wicket-tf3772804.html#a10670591
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to