title: Paginate Grails Table in GSP (complete list available)
body: <p>Is there a way to paginate a complete list already available in grails?</p>
  
  <p>I have a custom search something like that in my controller:</p>
  
  <pre><code>def updateSearchResults(String arg1, String arg2) {
      return filteredList
  }
  </code></pre>
  
  <p>This is called with a <code>remoteForm</code> submitting the two arguments. an div is updated with the returned list (it is in a separate .gsp called <code>updateSearchResults.gsp</code>) works fine.</p>
  
  <p>The issue is: this call returns between 5-100 results depending on the args (over 100 it will not display but show a warning to refine the search for less results - performance reason).</p>
  
  <p>This means that I have at max 100 items to display in a table: Pagination needed!</p>
  
  <p>I thought about implementing the pagination directly in the controller call - but I stumbled over the fact that it is a remoteformcall loading the list &amp; I do not have the arguments available on the pagination buttons - so a change in page would result in a complete reload with no search arguments.</p>
  
  <p>So the question is: <strong>how can I paginate a completely available list directly in my gsp?</strong></p>
  
  <p>I tried around but found no solution so far.</p>