Reputation: 113
I am new to Grails. I tried several sites such as this one to practice grails-view/ajax. But g:remoteLink is not working properly. When I click on the g:remoteLink on the .gsp page it render the new page instead of updating a selective portion of the current page.
Can anybody give me any solution? Thanks in advance.
JDK version : 1.7 update 45
Grails version : 2.2.0
Upvotes: 1
Views: 57
Reputation: 181
@ManazirAhsan
When you used g:remoteLink its working as a method/function calling in a controller. So in the corresponding controller if you add a page to view then it will do accordingly.
So you can solve your issue by rendering template to a view page using "div" to update corresnponding portion.
you can you use render instead of g:remoteLink or render in the action g:remoteLink is passing.
Hope this will work. Or you can comment any more issue. :)
Upvotes: 1