What is the api to clear the selection on the af table?

I have two ADF face tables, say A

and B

, and the property is rowSelection

set to " single

". Now the requirement is that when one row is selected from A

, it must clear all selections from B

and vice versa. Thus, I have logged selectionListeners

in both tables, and the code that is executed in this method does the following for the table that was not selected:

tablenNotSelected.setSelectedRowKeys(null);

      

What am I missing here?

+1


source to share


2 answers


You probably need to set up partial triggers on the table, or perhaps the surrounding container, to actually force the screen to refresh.



+2


source


Do not set the selected row keys to null. Use the API instead getSelectedRowKeys().RemoveAll();

.

To update another table, follow these steps.



table_1_selectionListener() {
    RequestContext.getCurrentInstance().addPartialTarget(T2);
}

      

Likewise for table listener 2

0


source







All Articles