hello, let's say I have a class BlacklistItem
public class BlacklistItem {
private long id;
private String msisdn;
...
/**
* @return the id
*/
public long getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(long id) {
this.id = id;
}
}
And I use scrollableDataTable to display a list of blacklistItem, and let the user selects a set of rows and when the user clicks the Delete button, these BlacklistItems will be deleted. But I found that when I set the selection attribute, the Selection object only contains the index in the rows, but not the id of BlacklistItem, is there a way to set the rowKeyVar that the value in Selection will contain the BlacklistItem's id but not just the index of the table? Thanks a lot.