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() { getSelectedSectors().clear(); Iterator<Object> iterator = getSelection().getKeys(); while (iterator.hasNext()){ SimpleRowKey key = (SimpleRowKey) iterator.next(); getSelectedSectors().add((Sector) listarObjetos().get(key.intValue())); } return null; }
the same code as for scrollable works fine. Just checked and even commited to richfaces demo extended table sample. So just checkout and explore.