I’m not looking for a div update. I’m looking for a full page “refresh”
So I have a tag:
<g:remoteField controller="person" action="updatePerson" id="${personInstance.id}" paramName="search" name="updatePerson" value="${personInstance?.favoriteBreed}" />
In my attached method, I want to perform the action of updating the domain object, then refresh the entire page. I’ve tried both renders and redirects to simple actions within the application, but nothing is called. So I’m thinking this isn’t possible with the remoteField tag.
Is this true?
Why reimplementing via AJAX the normal behaviour of a page? Why don’t you just call a redirect to the right action at the end of the called controller?
Let’s say you are in the view resulted from the showPerson action. In this view, call the updatePerson with a simple (don’t care about the params attribute, it’s only an example):
and in the controller do something like:
Isn’t it easier? 🙂