aspose file tools*
The moose likes Groovy and the fly likes A question for the Griffon authors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "A question for the Griffon authors" Watch "A question for the Griffon authors" New topic
Author

A question for the Griffon authors

Gene Golovchinsky
Greenhorn

Joined: May 06, 2009
Posts: 6
I am wondering if Griffon can be used in a manner analogous to GWT to develop client-side interaction for web applications. Grails is fine for structuring the server, but seems limited when it comes to dynamic web user interfaces. Would it be straightforward to "cross-compile" Griffon source to to produce HTML/CSS/JavaScript to interact with users through a browser?

Thanks,

Gene
Andres Almiray
author
Ranch Hand

Joined: Jan 25, 2010
Posts: 47

It is possible in theory though it is not a goal that we're looking forward at this moment, Griffon is mostly a desktop/RIA framework.
From the top of my mind you'll have to do the following to get it to work:

  • Make a builder that translates Swing code into HTML/Js/CSS
  • Find a way to translate threading code into AJAX/Cometd


  • I think it would be better to hack your own GWT compiler to allow Groovy to be used as an UI DSL. that task comes with its fair share of yak shaving too.

    Cheers,
    Andres
    Gene Golovchinsky
    Greenhorn

    Joined: May 06, 2009
    Posts: 6
    Andres Almiray wrote:
    I think it would be better to hack your own GWT compiler to allow Groovy to be used as an UI DSL. that task comes with its fair share of yak shaving too.


    Thanks for the quick reply! I understand the challenges of grafting these kinds of things together. The reason I ask is that I find Groovy/Grails really expressive for the server end, but not for building highly-interactive web apps. Hence my desire to do away with JavaScript...

    Looking forward to reading your book,

    Gene
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: A question for the Griffon authors