title: RichFaces: How to reset page in datascroller after changes of values in dataTable
body: <p>I have <code>rich:datascroller</code> for my <code>rich:dataTable</code> which is working well except that when I am on any page number (let say 5) and do a search operation (or any operation which renders the dataTable). Pagination will still show page 5, but I want it to be reset to 1. page when the operation happens.</p>
  
  <p>In this <a href="http://i.stack.imgur.com/yHBhK.png" rel="nofollow">image</a>, when I am going to Page 5 and hit Search again or do a clear and search again, the pagination is still set to Page 5, not back to Page 1.</p>
  
  <p>Here's my code snippet: </p>
  
  <pre><code>&lt;rich:datascroller id="prodDataScroller" for="prodClassificationOutputTable"
                     rows="100"   maxPages="10" fastStep="3" renderIfSinglePage="false"
                     immediate="false" page="#{prodClassificationBean.firstPage}"&gt;
  &lt;/rich:datascroller&gt;
  
  &lt;rich:dataTable id="prodClassificationOutputTable" border="0"
                  width="100%" columnClasses="col" headerClass="column-header"
                  style="overflow:auto;" rowClasses="odd,even" align="center"
                  value="#{prodClassificationBean.outputClassificationWrappers}"
                  var="prodClassificationRow" rows="100" rowKeyVar="row" immediate="true"&gt;
  &lt;!-- ... --&gt;
  &lt;rich:dataTable&gt;
  </code></pre>
  
  <p>I checked other solutions. I tried to implement <code>page</code> attribute for datascroller but it doesn't seem to be working. I created an attribute <code>firstpage</code> in backing bean being set to "1" when search happens so that page attribute of datascroller will have value as 1. But it's not resolving the issue.</p>
  
  <p>I would like to know where I am going wrong.</p>