File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes A question for the Griffon authors Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Groovy
Reply 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: 46

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
     
     
    subject: A question for the Griffon authors
     
    Threads others viewed
    * Welcome Andres Almiray and Danno Ferrin
    * Welcome Andres Almiray & Danno Ferrin
    [Griffon] Necessary background
    Isn't a Griffon application too slow to run?
    Running Griffon Based Application as a applet?
    WebSphere development made easy
    without the weight of IBM tools
    http://www.myeclipseide.com

    cast iron skillet 49er

    more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture