1 Reply Latest reply on Oct 6, 2015 4:10 AM by michpetrov

    can't make selection in dataTable after changing page

    mortee

      I have a richfaces 4.1 application which uses a selectable extendedDataTable and an attached dataScroller. When browsing the initial page, everything works properly, I can make a selection, and any attached event handlers fire. After changing to another page in the list though, all the selection functionality is lost.

       

      At the basic DOM level I see that initially the inner most tbody element has an onclick handler, but after turning the page, the refreshed tbody doesn't have it anymore.

       

      In the source code, I don't see any reason why this should happen. I'm not familiar with richfaces though (to be honest, not even JSF - this is my first assignment involving this technology), so I may be missing something obvious.

       

      Thanks for any clues!

       

      <rich:extendedDataTable id="..." value="#{...}" var="..." rows="20"
         style="width: 705px" selectionMode="single" selection="#{...}" columnClasses="...">
      
      ...
      
        <f:facet name="footer">
          <rich:dataScroller/>
        </f:facet>
      
      </rich:extendedDataTable>