How to turn off auto selection in adac adfl tables?

in oracle adf when we drop the table from Data Controls to the jsf page and when we run the project the table row is preselected. what should i do on first page load without lines?
I am using jdeveloper 11g R2.

+3


source to share


3 answers


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);

      

+4


source


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



+1


source


You can use the rowSelection = "none" property for the af: table to disable row selection.

-Vinoth

-1


source







All Articles