清除af:table上的选择的API是什么? [英] What is the api to clear selection on a af:table?
问题描述
我有两个ADF面表,分别是A
和B
,它们的rowSelection
属性设置为"single
".现在的要求是,当从A
中选择一行时,它应该清除B
中的所有选择,反之亦然.因此,我已经在两个表上都注册了selectionListeners
,并且在该方法内执行的代码正在对尚未选择的表执行以下操作:
I have a two ADF faces table say A
and B
and their rowSelection
property is is set to "single
". Now the requirement is when one row is selected from A
, it should clear out all selections from B
and vice versa . So I have registered selectionListeners
on both the tables and the code that gets executed inside that method is doing the following for the table that has not been selected :
tablenNotSelected.setSelectedRowKeys(null);
我在这里想念什么?
推荐答案
您可能需要在表或可能的周围容器上设置部分触发器,以实际强制进行屏幕更新.
You likely need to setup the partial triggers on the table, or possibly the surrounding container, to actually force a screen update.
这篇关于清除af:table上的选择的API是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!