title: Grails remote-pagination is refreshing entire page instead of div
body: <p>I am having problems with the grails plugin remote-pagination.  I have created a new project and copy pasted the sample code for the plugin.  There is a book class that has a list view and a template for the table.  The pagination is supposed to update only the data in the div 'filteredList', but instead the page is refreshed with the layout view, _filtered.gsp, only.  Below is the code :</p>
  
  <p>Controller:</p>
  
  <pre><code>class BookController {
  def scaffold = true
  
  def list = {
      [bookInstanceList: Book.list(max:10,offset: 0), bookInstanceTotal: Book.count()]
  }
  
  def filter = {
      params.max = Math.min(params.max ? params.int('max') : 10, 100)
      render(template: 'filter', model: [bookInstanceList: Book.list(params), bookInstanceTotal: Book.count()])
  }
  </code></pre>
  
  <p>}</p>
  
  <p>list.gsp - view :</p>
  
  <pre><code>&lt;%@ page import="com.intelligrape.Book" %&gt;
      &lt;html&gt;
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt;
      &lt;meta name="layout" content="main"/&gt;
      &lt;g:set var="entityName" value="${message(code: 'book.label', default: 'Book')}"/&gt;
      &lt;title&gt;&lt;g:message code="default.list.label" args="[entityName]"/&gt;&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;div class="nav"&gt;
      &lt;span class="menuButton"&gt;&lt;a class="home" href="${createLink(uri: '/')}"&gt;&lt;g:message code="default.home.label"/&gt;&lt;/a&gt;
      &lt;/span&gt;
      &lt;span class="menuButton"&gt;&lt;g:link class="create" action="create"&gt;&lt;g:message code="default.new.label" args="[entityName]"/&gt;&lt;/g:link&gt;&lt;/span&gt;
  &lt;/div&gt;
  
  &lt;div class="body"&gt;
      &lt;h1&gt;&lt;g:message code="default.list.label" args="[entityName]"/&gt;&lt;/h1&gt;
      &lt;g:if test="${flash.message}"&gt;
          &lt;div class="message"&gt;${flash.message}&lt;/div&gt;
      &lt;/g:if&gt;
      &lt;div id="filteredList"&gt;
          &lt;g:render template="filter"/&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt; 
  </code></pre>
  
  <p>_filtered.gsp - template for table of books</p>
  
  <pre><code>    &lt;div&gt;
  &lt;div class="list"&gt;
  &lt;table&gt;
      &lt;thead&gt;
      &lt;tr&gt;
  
          &lt;util:remoteSortableColumn property="id" title="${message(code: 'book.id.label', default: 'Id')}" update="filteredList" action="filter"/&gt;
  
          &lt;util:remoteSortableColumn property="author" title="${message(code: 'book.author.label', default: 'Author')}" update="filteredList" action="filter"/&gt;
  
          &lt;util:remoteSortableColumn property="name" title="${message(code: 'book.name.label', default: 'Name')}" update="filteredList" action="filter" max="5"/&gt;
  
          &lt;util:remoteSortableColumn property="price" title="${message(code: 'book.price.label', default: 'Price')}" update="filteredList" action="filter"/&gt;
  
      &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
      &lt;g:each in="${bookInstanceList}" status="i" var="bookInstance"&gt;
          &lt;tr class="${(i % 2) == 0 ? 'odd' : 'even'}"&gt;
  
              &lt;td&gt;&lt;g:link action="show" id="${bookInstance.id}"&gt;${fieldValue(bean: bookInstance, field: "id")}&lt;/g:link&gt;&lt;/td&gt;
  
              &lt;td&gt;${fieldValue(bean: bookInstance, field: "author")}&lt;/td&gt;
  
              &lt;td&gt;${fieldValue(bean: bookInstance, field: "name")}&lt;/td&gt;
  
              &lt;td&gt;${fieldValue(bean: bookInstance, field: "price")}&lt;/td&gt;
  
          &lt;/tr&gt;
      &lt;/g:each&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  &lt;div class="paginateButtons"&gt;
      &lt;util:remotePaginate total="${bookInstanceTotal}" update="filteredList"     action="filter" pageSizes="[5: '5 on Page',10:'10 on Page',15:'15 on Page']" max="5" /&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>