title: Primefaces datatable pagination not working
body: <p>I have a application using JSF2.0, Spring3 and Hibernate4.</p>
  
  <p>I am displaying values in Primefaces 3.4.2 datatable, the problem is when I click the pagination, datatable rows always remain in first 10 records. It doesn't displays next 10 records.</p>
  
  <p>My datatable code</p>
  
  <pre><code>&lt;h:form&gt;
          &lt;p:dataTable id="dataTable" var="req" value="#{reqMB.myList}"
              paginator="true" rows="10"
              paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
              rowsPerPageTemplate="5,10,15"&gt;
              &lt;f:facet name="header"&gt;          
  
          &lt;/f:facet&gt;
              &lt;p:column&gt;
                  &lt;f:facet name="header"&gt;
                      &lt;h:outputText value="XXX" /&gt;
                  &lt;/f:facet&gt;
                  &lt;h:outputText value="#{req.bbbb}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column&gt;
                  &lt;f:facet name="header"&gt;
                      &lt;h:outputText value="XXXXS" /&gt;
                  &lt;/f:facet&gt;
                  &lt;h:outputText value="#{req.kkjj}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column&gt;
                  &lt;f:facet name="header"&gt;
                      &lt;h:outputText value="XXXXXOO" /&gt;
                  &lt;/f:facet&gt;
                  &lt;h:outputText value="#{req.nnnn}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column&gt;
                  &lt;f:facet name="header"&gt;
                      &lt;h:outputText value="XXXXKK" /&gt;
                  &lt;/f:facet&gt;
                  &lt;h:outputText value="#{req.kkkk}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column&gt;
                  &lt;f:facet name="header"&gt;
                      &lt;h:outputText value="XKKKK" /&gt;
                  &lt;/f:facet&gt;
                  &lt;h:outputText value="#{req.pppp}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column&gt;
                  &lt;f:facet name="header"&gt;
                      &lt;h:outputText value="LLLL" /&gt;
                  &lt;/f:facet&gt;
                  &lt;h:outputText value="#{req.llll}" /&gt;
              &lt;/p:column&gt;
          &lt;/p:dataTable&gt;
      &lt;/h:form&gt;
  </code></pre>
  
  <p>ManagedBean</p>
  
  <pre><code>@Named("reqMB")
  @Scope("request")
  public class MyBean implements Serializable {
  
      private static final long serialVersionUID = 1L;
  
      @Inject
      MyService myService;
  
      List&lt;MyClass&gt; myList;
  
  
      public List&lt;MyClass&gt; getMyList() {
          try {
              myList= new ArrayList&lt;MyClass&gt;();
              myList.addAll(getMyService().getMymethod());
          } catch (Exception e) {
              e.printStackTrace();
          }
          return myList;
      }
  </code></pre>
  
  <p>How can I resolve this issue?</p>
  
  <p>Update 1</p>
  
  <p>I have noticed that when I display few number of records pagination works fine, but when I display records more than 1300, then pagination doesn't work.</p>