File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Grails with Dojo" Watch "Grails with Dojo" New topic

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?

Open Source leads to Open Mind
Jon Dickinson
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 Dickinson
    Accolade Consulting
    Grails 1.1 Web Application Development
    Maximilian Schweitzer

    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.

    Mourouganandame Arunachalam
    Ranch Hand

    Joined: Oct 29, 2008
    Posts: 396
    Thanks for the info Maximilian...
    I agree. Here's the link:
    subject: Grails with Dojo
    It's not a secret anymore!