Tuesday, April 27, 2010

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:

 <g:javascript library="dojo" />


Ajax link :



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


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 params.id. Gosh! I wonder if some wise guy can rename id to params

No comments:

Post a Comment

Thank you for your feedback