title: Grails gsp pagination not breaks list item
body: <p>Today when i customize list method of my controller,facing issue in list.gsp page.My problem is that all records  are displayed on a single page.
  for ex. Suppose i have 15 records then all 15 will show  on first page and also there in next link at footer.when clicks on it all pages show same 15 records.</p>
  
  <p>I was customize code because i need to run query and basis of result of query show records on list page.</p>
  
  <pre><code>def query = "from Book where isAvailable = 'true'"
          def bookInstanceList = Book.findAll(query)
          [bookInstanceList: bookInstanceList , bookInstanceTotal: bookInstanceList.size()]
  </code></pre>
  
  <p>it shows all records on a single page and records are not paginate on different page.
  i want to show maximum 10 records on each page.</p>
  
  <p>please reply me where i am missing.</p>
  
  <p>Thanks in advance</p>