title: JSF - Pagination implementation using Tomahawk
body: <p>I am trying to implement Pagination in JSF using Tomahawk. When the page is loaded, the table in the first page is populated with data. But, when I click on Next or Prev the table is empty. I don't see any javascript error in the browser. Following is the code from the jsp. Please let me know if I am missing something:</p>
  
  <pre><code>&lt;t:dataTable id="tableid" value="#{SiteSearchCriteria.siteList}"
          var="item" border="1" rows="5" rowIndexVar="rowIndex"
          rowClasses="trobg1,trobg2"&gt;
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;
                  &lt;h:outputText value="siteName"&gt;&lt;/h:outputText&gt;
              &lt;/f:facet&gt;
              &lt;h:outputLabel value="#{item.siteName}"&gt;&lt;/h:outputLabel&gt;
          &lt;/h:column&gt;
  
          &lt;h:column&gt;
              &lt;f:facet name="header"&gt;
                  &lt;h:outputText value="siteCLLI"&gt;&lt;/h:outputText&gt;
              &lt;/f:facet&gt;
              &lt;h:outputLabel value="#{item.siteCLLI}"&gt;&lt;/h:outputLabel&gt;
          &lt;/h:column&gt;
  &lt;/t:dataTable&gt;
  
  &lt;t:dataScroller id="dataScrollerId" for="tableid" fastStep="10"
          pageIndexVar="pageIndex" renderFacetsIfSinglePage="true"
          pageCountVar="pageCount" paginator="true" paginatorMaxPages="9"
          immediate="true"&gt;
          &lt;f:facet name="first"&gt;
              &lt;t:outputText value="First"&gt;&lt;/t:outputText&gt;
          &lt;/f:facet&gt;
          &lt;f:facet name="last"&gt;
              &lt;t:outputText value="Last"&gt;&lt;/t:outputText&gt;
          &lt;/f:facet&gt;
          &lt;f:facet name="previous"&gt;
              &lt;t:outputText value="Previous"&gt;&lt;/t:outputText&gt;
          &lt;/f:facet&gt;
          &lt;f:facet name="next"&gt;
              &lt;t:outputText value="Next"&gt;&lt;/t:outputText&gt;
          &lt;/f:facet&gt;
  &lt;/t:dataScroller&gt;    
  </code></pre>