title: Primefaces Paginate Lazy DataTable without count row
body: <p>in my page i have :</p>
  
  <pre><code>                    &lt;p:dataTable id="myTable" lazy="true" widgetVar="myTable" value=".." paginator="true" paginatorPosition="bottom" rows="10" ...&gt;
                      &lt;p:ajax event="page" oncomplete="myTable" /&gt;
                      ...
                      &lt;/p:dataTable&gt;
  </code></pre>
  
  <p>in my bean :</p>
  
  <pre><code>                    ...
                      private LazyDataModel list;
                      ...                     
                      public void search() {
                          list = new LazyDataModel&lt;SomeDTO&gt;() {
                              private static final long serialVersionUID = 1L;
                              List&lt;SomeDTO&gt; result = null;
  
                              @Override
                              public List&lt;SomeDTO&gt; load(int first, int pageSize, String sortField, SortOrder sortOrder, Map&lt;String, Object&gt; filters) {                                    
                                  List&lt;SomeDTO&gt; result = service.search(searchedName, first, pageSize);
                                  // SOME CODE HERE FOR PAGINATION ?? BUT WHAT
                                  return result;
                              }
  
                          };
                          // HOW TO DELETE THIS EXTRA REQUEST
                          list.setRowCount(service.search(searchedName));
                      }
  </code></pre>
  
  <p>my question is how to setRowCount from  result (size+1). i dont want to get the count from DB, because i'm sure we can calculate the rowCount without requesting DB.</p>