2 Replies Latest reply on May 4, 2010 11:33 AM by jdsuboy

    scrollableDataTable selection after sort not working on Demo site

    jdsuboy

      On the Demo site for scrollableDataTable, the selection is not being kept after a sort.

      http://livedemo.exadel.com/richfaces-demo/richfaces/scrollableDataTable.jsf

       

      I select a row, then sort on a column. The entry is no longer selected and clicking the "Show Current Selection" button shows an empty dialog.

       

      I was using IE7.

       

      Thanks!

        • 1. Re: scrollableDataTable selection after sort not working on Demo site
          ilya_shaikovsky

          this works as designed. when you sorting or filtering rowKeys are changed and the sorting after such actions - not actual.

          • 2. Re: scrollableDataTable selection after sort not working on Demo site
            jdsuboy

            Thanks for the quick reply!

             

            I want to keep the selection after sort in my code and I have been having problems doing this. I noticed prior discussions on this issue mentioning that the demo site has it working properly (i.e. selection is kept after sort). Did this change recently?

             

            I have tried to do it programatically in my bean, but I cant get it to work. I have selection="#{myView.selection}" for my scrollableDataTable, but myView.getSelection is never called, so the selection in my bean is never returned. myView.setSelection is called when a row is clicked, for example, but my bean never gets asked for the selection.

             

            Is there something I can do to get this selection after sort to work?