清除af:table上的选择的API是什么? [英] What is the api to clear selection on a af:table?

查看:123
本文介绍了清除af:table上的选择的API是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个ADF面表,分别是AB,它们的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆