Dojo Ajax with Grails

Grails can be very frustrating and deceptive. It is still evolving and there is a long way to go. Here is another issue which wasted my time.

I was trying out ajax with dojo. The example says:-

to install plugin:- grails install-plugin dojo

Header of gsp:


Ajax link :

<g:remoteLink action="delete" id="1" >Delete Book

One thing to remember here is id is the parameter you want to pass. You cannot change it to say order=”ABCD”. I have to pass it as id and retrieve it in the action as Gosh! I wonder if some wise guy can rename id to params


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s