`
- 浏览:
155323 次
- 性别:
- 来自:
上海
-
关于Oracle ADF 11g的客户端和服务端监听的使用(二)
前面有编文章介绍了客户端响应服务端,就是clientListener监听客户端的事件,调用JS来响应serverListener执行服务端的事件,但是如果遇到了clientListener监听不到的客户端事件呢?
<wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">因为使用了自定义dialog的LOV,也就是上篇文章介绍的利用LOV的searchContent这个facet来定义LOV弹出的dialog内容,因为现在需要对这个弹出的dialog的button设置access
key,本来对dialog设置access key是很方便的,只要把dialog的affirmativeTextAndAccess</span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">Key和cancelTextAndAccessKey属性设置成带有access key的&OK和&Cancel就行了,可问题是这个LOV的弹出的dialog无法在客户端设置这两个属性,所以需要在客户端增加serverListener监听,但如何响应这个监听呢,因为这时候clientListener没办法监听到这个LOV的popupOpened,所以需要在LOV的launchPopupListener中响应serverListener了,用clientListener也是要通过JS来响应serverListener的,那就可以在launchPopupListener中写代码来执行这个JS了。</span><br style="line-height:23px; orphans:2; widows:2"><br style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">StringBuilder script = new StringBuilder();</span><br style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">script.append("var source = AdfPage.PAGE.findComponent("").append(LOV控件ID).append("");");</span><br style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">script.append(" if (source != null) {AdfCustomEvent.queue(source,"serverListener响应的服务器事件",{},true);}");</span><wbr style="line-height:23px; orphans:2; widows:2"><br style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">FacesContext context = FacesContext.getCurrentInstance();</span><br style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">ExtendedRenderKitService</span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">service = Service.getService(context.getRenderKit(),</span><br style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2"></span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">ExtendedRenderKitService</span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">.class);</span><br style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">service.addScript(context, script.toString());</span><br style="line-height:23px; orphans:2; widows:2"><br style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">这与clientListener响应serverListener是相同的,只不过前者是在客户端执行JS,后者是在服务端执行JS。</span></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
Oracle ADF 11g回车键执行Action JS
Web 2.0 Oracle ADF 应用开发框架 ADF Model 模型 ADF BC 业务组件 ADF View 视图 ADF Controller 控制器
[Packt Publishing] Oracle ADF 11gR2 初学者开发指南 (英文版) [Packt Publishing] Oracle ADF 11gR2 Development Beginner's Guide (E-Book) ☆ 出版信息:☆ [作者信息] Vinod Krishnan [出版机构] Packt ...
ORACLE英文版学习资料 JDeveloper和ADF 11g新文档集 oracle-11g-english
很好的ADF中文资料,Oracle ADF Essentials
Fusion Developer's Guide for Oracle ADF [11.1.1.7]
Oracle ADF AM常用配置参数参考 1、AM 常用参数 2、AM 压力测试报告 3、AM 参数配置原则 4、AM 参数配置详细说明
oracle ADF开发指南第一章 Oracle® Application Development Framework Developer’s Guide For Forms/4GL Developers 10g Release 3 (10.1.3.0) B25947-01
Oracle ADF JDeveloper10g应用到11g迁移(中英文对照)
Oracle ADF开发实战指南,学习adf好教程。
1013版本oracleADF开发指南 官方版本
ORACLE_ADF_11g
使用JSF开发基于Ajax的富客户端组件的文档
describes the architecture and key functionality of the Oracle Application ...JDeveloper 10g Release 3 (10.1.3) to build web applications using Oracle ADF, Enterprise JavaBeans, Oracle TopLink, and JSF.
这是Adf多表级联菜单实例其中保存创建Criteria知识,多表关系,以及在Vo中使用vo当前字段过滤结果
Oracle® Fusion Middleware Understanding Oracle Application Development Framework 12c (12.2.1.3.0) E80020-01 August 2017
[Packt Publishing] 网络应用开发 Oracle ADF Essentials 实现 英文版 [Packt Publishing] Developing Web Applications with Oracle ADF Essentials E Book ☆ 图书概要:☆ Quickly build attractive user ...
ORACLE_ADF_11g讲解
Oracle 应用程序开发框架 (Oracle ADF) 是一个端到端 JEE 框架,该框架通过提供现成的基础架构服务和虚拟的声明式开发体验,从而简化程序开发。 Oracle ADF的架构是基于MVC设计模式的,ADF把应用程序分成了四层;...
本文档介绍了Oracle ADF的具体的开发过程,原理,及具体的步骤,以及一些demo。