AI编程助手
AI免费问答

Oracle ADF 双击行事件

不言   2018-06-27 17:47   1158浏览 原创

参考adf code corner how-to handle and respond to mouse double clicks in adf faces tables.在双击table 的某一行时 ,实现弹出

参考adf code corner how-to handle and respond to mouse double clicks in adf faces tables.

在双击table 的某一行时 ,实现弹出popup,popup中弹出子table的数据.

在主table的属性结尾加上


clientListener 捕获客户端双击行这个事件,并传递给js 的handleTableDoubleClick方法;

在页面af:document下 写handleTableDoubleClick事件


ManageBean的代码:

方法控制服务端弹出popup

public void handleTableDoubleClick(ClientEvent ce){
RichPopup popup = this.getGetpopup(); //popup是一个RichPopup型对象,绑定服务端组件popup
//no hints means that popup is launched in the
//center of the page
RichPopup.PopupHints ph = new RichPopup.PopupHints();
popup.show(ph);

}


PS:

还有双击table的某一行时实现弹出popup,弹出是搜索帮助情况,以后研究.

刚做个列字段为1到12个月.

则双击某1列时实现传入当列的月份.

则需要commandlink,与双击行无关.

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。