11 Replies Latest reply on Sep 8, 2008 9:15 AM by Lotfi Mellouk

    dataScroller inside dataTable

    Lotfi Mellouk Master

      Hi all,

      I put dataScroller inside dataTable and selectOneMenu in order to set dataScroller page.
      when I select a page first time, it works, but, when I try to change a page, dataTable is not rerendered, and nothing happeng.

      <f:facet name="footer">
      <h:panelGroup>
      <rich:panel style="border:0;text-align:center;">
      <h:selectOneMenu value="#{bean.page}" id="go_to">
      <f:selectItems value="#{bean.pages}" />
      <a4j:support reRender="table_id" event="onchange" ajaxSingle="true">
      
      </a4j:support>
      </h:selectOneMenu>
      </rich:panel>
      <rich:datascroller binding="#{bean.scroller}"
      pageIndexVar="pageIndex" pagesVar="pages" for="table_id"
      id="scr2" reRender="table_id"
      page="#{bean.page}">
      <f:facet name="pages">
      <h:outputText value="#{pageIndex} / #{pages}" />
      </f:facet>
      </rich:datascroller>
      </h:panelGroup>
      </f:facet>
      


      RF 3.2.1.CR2 myfaces 1.2.2

      regards
      what can I do to get dataScroller working perfectly?