2 Replies Latest reply on Apr 17, 2009 7:52 AM by hattifnat

    Extended Data Table + scroller + onRowClick

    hattifnat

      I'm using RF 3.2.2.GA. I have a following layout:

      <h:form id="pacTableForm">
       <rich:extendedDataTable id="pacTable" sortMode="multi" value="#{packetList.resultList}" var="pac" rows="100">
       <a:support event="onRowClick"
       action="#{packetDisplay.selectPacket(pac)}"
       reRender="pacDetailForm"
       ignoreDupResponses="true"
       eventsQueue="pacDisplayQueue"
       requestDelay="1000"
       onsubmit="document.body.style.cursor = 'wait';"
       oncomplete="document.body.style.cursor = 'default';"/>
      (... columns here ...)
       </rich:extendedDataTable>
       <rich:datascroller for="pacTable" page="#{packetList.page}" />
      </h:form>

      The value for the table is provided by a Seam EntityQuery component. When I'm not using the scroller (and I do not specify the rows attribute of the table) everything works fine - the a:support action selectPacket(pac) is called and the pacDetailForm is rerendered. However, when I add the scroller, the table is paginated correctly, but the a:support works only on the first page - when I switch to a later page, only the first time I click a row on that page the selectPacket action is called. When I click a row again, the action is not called. When I switch a page, the same behaviour - only the first time I click it works. When I go back to the first page - it works fine, any time I click the action is called. Does anyone have any suggestion what is wrong or how to investigate the matter deeper?