add this to your scrollableDataTable tag:
- binding="#{bean.table}" selection="#{bean.selection}"
Add this(with appropriate getters and setters) into your bean(backing bean class):
- private Selection scrollableDataTableSelection;
- private HtmlScrollableDataTable sdTable;
- public void listener(ActionEvent event)
- {
- Iterator keys = table.getKeys();
- while(keys.hasNext())
- {
- Object key = keys.next();
- table.setRowKey(key);
- Object rowData = table.getRowData();
- // here do what you want with your rowData
- }
- }