Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

A question for the Griffon authors

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
author
Posts: 47
VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    Posts: 6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    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
     
    Oh. Hi guys! Look at this tiny ad:
    Java file APIs (DOC, XLS, PDF, and many more)
    https://products.aspose.com/total/java
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!