How to turn off auto selection in adac adfl tables?
Try to remove the selected RowKeys attribute in the table properties:
<af:table value="#{bindings.View1.collectionModel}"
...
selectedRowKeys="#{bindings.View1.collectionModel.selectedRow}">
If you have a master / child relationship, set the update condition for the child to "ifNeeded".
Once the user selects the rows and fires the event, the bean gets the table handle in the backup (various ways to do this), you can get the selected rows using:
Iterator tableIterator = tableHandle.getSeletedRowKeys().Iterator();
if (tableIterator.hasNext()) {
...do stuff
After you have processed the selection (s), you can clear the selection and add a partial target to show the table again without selection. First update the table iterator, then clear the selected keys:
if (tableHandle.getSelectedRowKeys() != null) {
tableHandle.getSelectedRowKeys().clear();
}
AdfFacesContext.getCurrentInstance().addPartialTarget(tableHandle);
source to share
Refer to this, it can help you to disable rowSelection permanently, you can set the rowSelection table to none and remove it so that the select listener and the selected rowkey See this - http://amit-adf-work.blogspot.in/2012/ 09 / how-to-disable-adf-default-row.html Thanks
source to share