title: Back bean attributes not updated on primefaces data table sort action
body: <p>I'm using primefaces lazy data table in a jsf page like below:</p>
  
  <pre><code>&lt;h:form id="searchForm"&gt;
      &lt;h:panelGroup id="searchFields"&gt;
          &lt;h:outputText value="searchField"/&gt;
          &lt;p:inputMask
                  id="txtSearchField"
                  dir="LTR"
                  mask="9?999999999999"
                  maxlength="12"
                  value="#{myBackBean.searchField}" /&gt;
  
          &lt;h:commandButton
                  id="searchButton"
                  value="search"
                  action="{myBackBean.searchAction}" /&gt;
      &lt;/h:panelGroup&gt;
      &lt;p:dataTable
              id="resultTable"
              var="res"
              value="#{res.listOfRecords}"
              paginator="true" paginatorPosition="bottom" rows="10"
              rowsPerPageTemplate="5,10,15"
              lazy="true"&gt;
  
          &lt;p:column headerText="recordId" sortBy="#{res.recordId}"&gt;
              &lt;h:outputText value="#{res.recordId}" /&gt;
          &lt;/p:column&gt;
  
      &lt;/p:dataTable&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p>As you can see, there is a search panel above the dataTable which contains parameters that user can narrow the result by filling them. There exists a corresponding attribute for each search field in the backing bean like below.</p>
  
  <pre><code>@Component
  @Scope("request")
  public class myBackBean {
  
      private String searchField;
      private LazyDataModel&lt;RecordsDto&gt; listOfRecords;
  
      @Autowired
      MyService myService;
  
      public String getSearchField() {
          return searchField;
      }
  
      public void setSearchField(String searchField) {
          this.searchField = searchField;
      }
  
      public LazyDataModel&lt;OperationsDto&gt; getListOfRecords() {
          return listOfRecords;
      }
  
      public void setListOfRecords(LazyDataModel&lt;RecordsDto&gt; listOfRecords) {
          this.listOfRecords = listOfRecords;
      }
  
      public void searchAction() {
          // doing the search and filling the list
          listOfRecords = ...;
          return listOfRecords;
      }
  }
  </code></pre>
  
  <p>when I press the "searchButton" the back bean gets updated and it contains the "searchField" value which the user has inputted.
  But when I try to sort the grid with the sort arrow on the "recordId" column, my request goes to "getListOfRecords()" method of the back bean, but the "searchField" value is null.</p>
  
  <p>How can I instruct the data table sort actions to update the search fields as well in the back bean?</p>