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 Grails with Dojo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Grails with Dojo" Watch "Grails with Dojo" New topic
Author

Grails with Dojo

Mourouganandame Arunachalam
Ranch Hand

Joined: Oct 29, 2008
Posts: 396
Hi Jon,

Understand one chapter has been dedicated for Ajax and RIA toolkits.... did the book cover how to use Dojo with Grails?

Does Dojo blend well with Grails when compared other web frameworks?


Mourougan
Open Source leads to Open Mind
Jon Dickinson
Author
Ranch Hand

Joined: Feb 24, 2009
Posts: 45
Hi Mourougan,

The book does not cover Dojo specifically. Grails supports AJAX calls through a number of tags that abstract the underlying AJAX framework. By default the Prototype framework is used. There is a plug-in for Dojo, which is as simple to install as:



Then you tell Grails to use Dojo library in the head of your GSP file:



In the book I show how to use the Grails AJAX tags, and then go on to use the RichUI plug-in, which provides a number of common UI design patterns. The two I show are:
  • Auto suggest
  • Tag clouds


  • Cheers,
    Jon.


    Jon Dickinson
    Accolade Consulting
    Grails 1.1 Web Application Development
    Maximilian Schweitzer
    Greenhorn

    Joined: May 24, 2008
    Posts: 1
    Hi Mourougan,

    I'm currently working with Dojo and Grails. Unfortunately I cannot recommend installing the dojo plugin. It's totally outdated. Regarding to the Grails mailing list the dojo plugin will be updated to version 1.3 but until that the best way is to get the latest version (1.3) from the offical website and unpack it to your web-app/js directory.

    In my opinion it's a great experience using Dojo and Grails together. Compared to YUI dojo gives you a lot more widgets. Only Unit-Testing is unbeatable in YUI. ExtJS is a great framework but through their license problems I cannot recommend it any more.

    Cheers,
    Maximilian
    Mourouganandame Arunachalam
    Ranch Hand

    Joined: Oct 29, 2008
    Posts: 396
    Thanks for the info Maximilian...
     
    jQuery in Action, 2nd edition
     
    subject: Grails with Dojo
     
    Similar Threads
    DOJO and Grails
    Web framework
    Dealing with money in Grails
    Help needed with DOJO and JSP
    stripes and grails?