- 浏览: 155376 次
- 性别:
- 来自: 上海
文章分类
最新评论
关于Oracle ADF 11g实现自动提示(客户端和服务端监听的使用)(一)
对于页面中控件的值的自动提示的实现,先对整个自动提示的过程做一下分析。首先是inputText中输入一个value,那么通过键盘就应该响应一个客户端的JavaScript;然后这个客户端需要通知服务器端,并将inputText中输入的value传给服务器端,服务器端监听到这个事件后调用managedBean中的相应的方法,根据传入的value与定义好的List中的value做筛选,并将筛选后的数据显示到一个selectOneListbox中,然后用户选中selectOneListbox的一条数据之后,再响应一个客户端的JavaScript,将选中的数据set到inputText中。整个过程清晰了,那实现的方法也就明了了。
<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">在inputText中加入一个客户端的监听clientListener和服务端的监听serverListener,客户端响应类型keyUp的事件,并通知服务器端。服务端监听绑定好managedBean中的一个方法。</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">function handleCityChange(actionEvent)</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><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">var source = actionEvent.getSource();</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">var params = {city:source.getSubmittedValue()};</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">AdfCustomEvent.queue(source, 'cityChange', params,</span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">true);</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">actionEvent.cancel();</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><br style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">这样就会执行serverListener的method绑定的managedBean的方法,这个方法只需把传入的参数赋值给一个全局变量,并手动对selectOneListbox做PPR即可。然后在selectOneListbox中的selectItems的value所绑定的get方法中根据已经赋值了的全局变量对数据进行筛选。最后在selectOneListbox中还要加一个针对其valueChange的客户端的监听clientListener,将selectOneListbox的当前value设置给inputText就OK了。</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">function acceeptCityChange(actionEvent)</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><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">var source = actionEvent.getSource();</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">var city = source.findComponent('txtCity');</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">city.setValue(source.getValue());</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><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></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></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 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">在inputText中加入一个客户端的监听clientListener和服务端的监听serverListener,客户端响应类型keyUp的事件,并通知服务器端。服务端监听绑定好managedBean中的一个方法。</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">function handleCityChange(actionEvent)</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><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">var source = actionEvent.getSource();</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">var params = {city:source.getSubmittedValue()};</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">AdfCustomEvent.queue(source, 'cityChange', params,</span><wbr style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">true);</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">actionEvent.cancel();</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><br style="line-height:23px; orphans:2; widows:2"><span style="line-height:23px; orphans:2; widows:2">这样就会执行serverListener的method绑定的managedBean的方法,这个方法只需把传入的参数赋值给一个全局变量,并手动对selectOneListbox做PPR即可。然后在selectOneListbox中的selectItems的value所绑定的get方法中根据已经赋值了的全局变量对数据进行筛选。最后在selectOneListbox中还要加一个针对其valueChange的客户端的监听clientListener,将selectOneListbox的当前value设置给inputText就OK了。</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">function acceeptCityChange(actionEvent)</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><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">var source = actionEvent.getSource();</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">var city = source.findComponent('txtCity');</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">city.setValue(source.getValue());</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><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></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></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>
相关推荐
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
[Packt Publishing] 网络应用开发 Oracle ADF Essentials 实现 英文版 [Packt Publishing] Developing Web Applications with Oracle ADF Essentials E Book ☆ 图书概要:☆ Quickly build attractive user ...
很好的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_11g
Oracle ADF开发实战指南,学习adf好教程。
1013版本oracleADF开发指南 官方版本
Oracle ADF JDeveloper10g应用到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.
ORACLE_ADF_11g讲解
ADF定义:Application Development Framework是oracle开发的一个基于Jdeveloper的界面化操作MVC开发框架,依赖XML进行数据映射和配置,实现客户端空间“拖拽”数据绑定,大大简化基于MVC的WEB开发
Oracle® Fusion Middleware Understanding Oracle Application Development Framework 12c (12.2.1.3.0) E80020-01 August 2017
Oracle 应用程序开发框架 (Oracle ADF) 是一个端到端 JEE 框架,该框架通过提供现成的基础架构服务和虚拟的声明式开发体验,从而简化程序开发。 Oracle ADF的架构是基于MVC设计模式的,ADF把应用程序分成了四层;...
Oracle ADF 11g在RichTable添加行到最后一行