2 Replies Latest reply on Dec 9, 2009 5:40 PM by Sascha Janz

    extendeddatatable get selection after sorting

    Sascha Janz Master

      i use an extendeddatatable .

      to get the selection i use

       Iterator<Object> iterator = (Iterator<Object>) selection.getKeys();
       while (iterator.hasNext()) {
       Integer key = (Integer) iterator.next();
       log.debug("selection key " + key);
      
       DataView wfv = (DataView) list.get(key.intValue());
       }
      
      
      


      this works if the table is not sorted.

      but when the user sorts the table i got the wrong index. how can i get it ?