jquery-ui autocomplete in grails

ajax, grails, grails-plugin, jquery-ui

Solution

At first you need to add in your main.gsp (in head) this to lines

 <g:javascript library="jquery"/>
 <g:javascript library="jquery-ui"/>

the plugin will downloaded automatically.

and for complete example you can use this link

http://jay-chandran.blogspot.com/2011/09/using-grails-with-jquery-autocomplete.html

Problem

Can anyone give me the complete steps to work with jquery-ui autocomplete. I am using grails 2.0.1. I need a complete example including code for controller and views. Thanks in advance.

Original source