title: pagination with lazy loading in primefaces donesn't work properly
body: <p>I am getting a problem with lazy loading in dataTable but couldn't to know where the problem is, 
  here is my xhtml page code:</p>
  
  <pre><code> &lt;f:view xmlns="http://www.w3.org/1999/xhtml"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:p="http://primefaces.org/ui"&gt;
  &lt;h:head&gt;
      &lt;title&gt;Application&lt;/title&gt;
  &lt;/h:head&gt;
  &lt;h:body&gt;
      &lt;h:form&gt;
          &lt;h:panelGrid columns="2"&gt;
            &lt;h:outputLabel value="Element per page"/&gt;
            &lt;p:selectOneMenu value="#{applicationManagementListBean.pageSize}"&gt;
                &lt;f:selectItem itemLabel="5" itemValue="5"/&gt;
                &lt;f:selectItem itemLabel="10" itemValue="10"/&gt;
                &lt;f:selectItem itemLabel="30" itemValue="30"/&gt;
                &lt;f:selectItem itemLabel="50" itemValue="50"/&gt;
                &lt;p:ajax event="change" update="applicationDataList"/&gt;
            &lt;/p:selectOneMenu&gt;
          &lt;/h:panelGrid&gt;
          &lt;p:commandButton value="New application"
              action="inscription.xhtml?faces-redirect=true" ajax="false" /&gt;
          &lt;p:dataTable id="applicationDataList" value="#{applicationManagementListBean.applications}"
              var="app" paginator="true"
              rows="#{applicationManagementListBean.pageSize}" lazy="true"
              paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"&gt;
  
  
              &lt;p:column headerText="Code"&gt;
                  &lt;h:outputText value="#{app.code}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Name"&gt;
                  &lt;h:outputText value="#{app.name}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Abreviate name"&gt;
                  &lt;h:outputText value="#{app.abrevName}" /&gt;
              &lt;/p:column&gt;
  
              &lt;p:column headerText="Status"&gt;
                  &lt;h:outputText value="#{app.status.description}" /&gt;
              &lt;/p:column&gt;
  
  
          &lt;/p:dataTable&gt;
      &lt;/h:form&gt;
  
  &lt;/h:body&gt;
       &lt;/f:view&gt;
  </code></pre>
  
  <p>and the bean code:</p>
  
  <pre><code>@ManagedBean
  @ViewScoped
  public class ApplicationManagementListBean implements Serializable {
  
      private static final long serialVersionUID = 1L;
  
      @ManagedProperty(value = "#{applicationManagementService}")
      public ApplicationManagementRemote applicationManagementService;
  
      private Integer pageSize = 3;
      private DataProxyLazyDataModel data;
  
      public void setApplicationManagementService(
              ApplicationManagementRemote applicationManagementService) {
          this.applicationManagementService = applicationManagementService;
      }
  
      public LazyDataModel&lt;Object&gt; getApplications() {
          data = new DataProxyLazyDataModel(applicationManagementService);
          data.setPageSize(pageSize);
          return data;
      }
  
      public Integer getPageSize() {
          return pageSize;
      }
  
      public void setPageSize(Integer pageSize) {
          this.pageSize = pageSize;
      }
  
      public DataProxyLazyDataModel getData() {
          return data;
      }
  
      public void setData(DataProxyLazyDataModel data) {
          this.data = data;
      }
  
    }
  </code></pre>
  
  <p>when  I click on the next page button nothing happen</p>
  
  <p>please help
  thanks a lot
  best regards, Rachid</p>
  
  <p>primegaces 3.4.2, liferay portal 6.1, eclipse</p>