1 Reply Latest reply on Dec 18, 2008 6:38 AM by Ilya Shaikovsky

    ExtendedDataTable TakeSelection()

    Reseba Reseba Newbie

      I'm using a extendendDataTable, and i don't know how to get the row that the client choose
      I used the next code with scrollableDataTable:

      public String takeSelection() {
       Iterator<Object> iterator = getSelection().getKeys();
       while (iterator.hasNext()){
       SimpleRowKey key = (SimpleRowKey) iterator.next();
       getSelectedSectors().add((Sector) listarObjetos().get(key.intValue()));
       return null;

      but i can't use the same idea, because extendedDataTable doesn't have SimpleRowKey

      Any idea?