title: Grails Ajax rendering list action
body: <p>Trying to render all the <strong>Contacts</strong> using ajax (<a href="http://i.stack.imgur.com/a1ZCI.png" rel="nofollow">This is a snippet</a>)</p>
  
  <p>So on click, it will list the contacts in a <code>div</code> on the update action. I have tested with a basic date function (<em>see commented out render action Controller</em>)  to make sure ajax part could work and that does, but handling the list I have hit a wall with and going round in circles </p>
  
  <p><em>GSP</em>: </p>
  
  <pre><code>&lt;g:remoteLink controller="event" action="showContacts" update="divContactList"&gt;Show Contacts!&lt;/g:remoteLink&gt;
  
  &lt;div id="divContactList"&gt;Show contacts Here...
      &lt;g:each in="${contactList}" status = "i" var="contact"&gt;
         &lt;p&gt;${contact.forname}&lt;/p&gt;            
         &lt;p&gt;${contact.email}&lt;/p&gt;
      &lt;/g:each&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><em>Controller</em>:</p>
  
  <pre><code>def showContacts = {
      def contactList = Contact.findAllByUser(lookupPerson())
  //        render "The time is now ${new Date()}"
      render([contactList: contactList])        
  }
  </code></pre>
  
  <p>So overall it's not showing anything from the contactList in the web page, help on this would be appreciated </p>