title: Reset Primefaces Pagination Selected Page on Ajax Request
body: <p>I'm not sure if this is a bug or just something that isn't implemented but I can't update the dataGrids page property to reset the pagination to page 1.  I've bound it to an expression in my bean and update it via an ajax update, but it doesn't get updated when I clicked my button.  The paginator will stay on the selected page and not reset via an ajax request. I'm using  to try to reset it.  The dreamSearchBean's setCurrentPage does get called and gets passed 1 but it stays at whatever page was last selected</p>
  
  <pre><code>&lt;h:form id="dreamWebSearchFrm"&gt;
  &lt;p:commandButton styleClass="form-btn1" value="#{bundle['dreamSearch.search.button.TEXT']}" onclick="trackingDreamSearch()"
          actionListener="#{dreamSearch.search}" update=":dreamWebSearchFrm:resultsPnl"&gt;
          &lt;f:setPropertyActionListener value="1" target="#{dreamSearchBean.currentPage}"/&gt;    
  &lt;/p:commandButton&gt;
  &lt;p:panel id="resultsPnl"&gt;
                      &lt;div class="data-grid-wrap"&gt;
                      &lt;h:outputFormat escape="false" value="#{bundle['dreamSearch.imageResults.TEXT']}" rendered="#{dreamSearchBean.shouldRender}" &gt;
                          &lt;f:param value="#{dreamSearchBean.searchText}" /&gt;
                      &lt;/h:outputFormat&gt;
                          &lt;p:dataGrid var="dream" value="#{dreamSearchBean.dreams}" rendered="#{dreamSearchBean.shouldRender}" page="#{dreamSearchBean.currentPage}" pageLinks="3"  columns="4" rows="4" paginator="true" effect="true"
                              styleClass="ui-header-visibility"
                              paginatorTemplate="{FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink}"
                              paginatorPosition="bottom"&gt;
                              &lt;p:column&gt;
                                  &lt;h:panelGrid columns="1"&gt;
                                      &lt;p:commandLink onclick="webSearchDlg.hide();dreamEditDlg.show();" update=":dreamEditFrm:display"&gt; 
                                          &lt;f:setPropertyActionListener value="#{dream}" target="#{dreamModifyBean.selectedDream}"/&gt;
                                          &lt;p:graphicImage value="#{dream.imageThumb}" width="125" height="100"&gt;&lt;/p:graphicImage&gt;
                                      &lt;/p:commandLink&gt;
                                  &lt;/h:panelGrid&gt;
                              &lt;/p:column&gt;
                          &lt;/p:dataGrid&gt;
                      &lt;/div&gt;
                  &lt;/p:panel&gt;
  &lt;/h:form&gt;
  </code></pre>