title: How to get the pagenumber in a lazy loading data table
body: <p>I have a lazy loaded data table and I want to pass page number or rows count from the XHTML to the ManagedBean. How can I do it?This is the data table that I am using:</p>
  
  <pre><code>&lt;p:dataTable var="studyPlanList" value="#{editBean.lazyModel}"
          paginator="true" rows="5"
          paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
          rowsPerPageTemplate="5,10,15" selectionMode="single"
          selection="#{editBean.selectedStudyPlan}" id="studyPlanTable"&gt;
          &lt;p:ajax event="rowSelect" listener="#{editBean.onRowSelect}"
              update=":studyPlanEditForm :relatedFileEditForm" /&gt;
          &lt;p:column headerText="StudyPlan" sortBy="#{studyPlanList.name}"
              filterBy="#{studyPlanList.name}" width="100"&gt;
              &lt;h:outputText value="#{studyPlanList.name}" /&gt;
          &lt;/p:column&gt;
          &lt;p:column headerText="StudyPlan Status" width="100"&gt;
              &lt;h:graphicImage
                  value="#{editBean.statusKeyMap.get(studyPlanList.status)}"
                  style="float:center;height: 18px;width: 20px"
                  title="#{editBean.statusTitleMap.get(studyPlanList.status)}" /&gt;
          &lt;/p:column&gt;
          &lt;p:column headerText="Messages" width="100"&gt;
              &lt;ui:fragment rendered="#{studyPlanList.status eq 300}"&gt;
                  &lt;h:outputText style="font: italic;"
                      value="Please click Finish Editing to Finish SpokenTutorial" /&gt;
              &lt;/ui:fragment&gt;
          &lt;/p:column&gt;
      &lt;/p:dataTable&gt;
  </code></pre>