Below is the code snippet to iterate over the selected rows of an adf table.
//table is the ADF component reference created using the table's binding attribute
RowKeySet rks = table.getSelectedRowKeys();
Iterator it = rks.iterator();
while (it.hasNext()) {
List selectedRowKeyPath = (List)it.next();
Row row = ((JUCtrlHierNodeBinding)table.getRowData(selectedRowKeyPath)).getRow();
System.out.println("Row Attribute-1 " + row.getAttribute(1));
}
No comments:
Post a Comment