Home >Database >Mysql Tutorial >Oracle ADF 双击行事件

Oracle ADF 双击行事件

不言
不言Original
2018-06-27 17:47:541145browse

参考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,与双击行无关.


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn