package view;
import javax.faces.component.UIComponent;
import javax.faces.event.ValueChangeEvent;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.adf.share.ADFContext;
import oracle.jbo.Row;
import oracle.jbo.server.ViewRowImpl;
import oracle.jbo.uicli.binding.JUCtrlListBinding;
import oracle.jbo.uicli.binding.JUIteratorBinding;
public class CascadeLOVBean {
/**
* 要获取触发LOV的属性
*/
private String attributeName;
/**
* 要传的参数名
*/
private String parameterName;
/**
* 触发LOV的List Binding
*/
private JUCtrlListBinding listBinding;
/**
* 被触发LOV的Iterator Binding
*/
private DCIteratorBinding iteratorBinding;
public CascadeLOVBean() {
super();
}
public void valueChangeListener(ValueChangeEvent valueChangeEvent) {
if (valueChangeEvent.getNewValue() != valueChangeEvent.getOldValue()) {
Integer newValue = (Integer)valueChangeEvent.getNewValue();
ViewRowImpl row = (ViewRowImpl)listBinding.getValueFromList(newValue);
Object paramValue = row.getAttribute(attributeName);
ADFContext.getCurrent().getRequestScope().put(parameterName, paramValue);
iteratorBinding.executeQuery();
}
}
public void setListBinding(JUCtrlListBinding listBinding) {
this.listBinding = listBinding;
}
public JUCtrlListBinding getListBinding() {
return listBinding;
}
public void setIteratorBinding(DCIteratorBinding iteratorBinding) {
this.iteratorBinding = iteratorBinding;
}
public DCIteratorBinding getIteratorBinding() {
return iteratorBinding;
}
public void setAttributeName(String attributeName) {
this.attributeName = attributeName;
}
public String getAttributeName() {
return attributeName;
}
public void setParameterName(String parameterName) {
this.parameterName = parameterName;
}
public String getParameterName() {
return parameterName;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
ADF相互独立的LOV实现级联
共90个文件
xml:68个
class:3个
lck:2个
5星 · 超过95%的资源 需积分: 12 41 下载量 199 浏览量
2012-02-20
22:06:01
上传
评论 1
收藏 264KB ZIP 举报
温馨提示
ADF相互独立的LOV实现级联. 在网上看到很多基于一个VO中的两个Atttribute的LOV实现级联的例子,本例子实现如何将两个独立的LOV实现级联,以Oracle实例数据库HR中的DEPARTMENTS和LOCATIONS两个表为例,根据DEPARTMENT中的列location_id过滤department列表的值。
资源推荐
资源详情
资源评论
收起资源包目录
HRCascadingLOV2.zip (90个子文件)
HRCascadingLOV2
src
META-INF
cwallet.sso 3KB
weblogic-application.xml 740B
jps-config.xml 964B
.adf
META-INF
adf-config.xml 1KB
connections.xml 1KB
HRCascadingLOV2.jws 4KB
Model
src
model
Model.jpx 1KB
common
bc4j.xcfg 759B
entities
EmpManagerFkAssoc.xml 1KB
EmpJobFkAssoc.xml 1KB
Locations.xml 4KB
Countries.xml 3KB
Departments.xml 4KB
CountrRegFkAssoc.xml 1KB
Regions.xml 2KB
Jobs.xml 3KB
DeptLocFkAssoc.xml 1KB
LocCIdFkAssoc.xml 1KB
DeptMgrFkAssoc.xml 1KB
Employees.xml 9KB
EmpDeptFkAssoc.xml 1KB
HRModule.xml 3KB
vo
DeptMgrFkLink.xml 1KB
LocCIdFkLink.xml 1KB
JobsView.xml 1KB
LocationsView.xml 2KB
EmpJobFkLink.xml 1KB
CountrRegFkLink.xml 1KB
EmpManagerFkLink.xml 1KB
EmpDeptFkLink.xml 1KB
DeptLocFkLink.xml 1KB
CountriesView.xml 1KB
RegionsView.xml 1KB
EmployeesView.xml 3KB
DepartmentsView.xml 2KB
classes
model
Model.jpx 1KB
common
bc4j.xcfg 759B
entities
EmpManagerFkAssoc.xml 1KB
EmpJobFkAssoc.xml 1KB
Locations.xml 4KB
Countries.xml 3KB
Departments.xml 4KB
CountrRegFkAssoc.xml 1KB
Regions.xml 2KB
Jobs.xml 3KB
DeptLocFkAssoc.xml 1KB
LocCIdFkAssoc.xml 1KB
DeptMgrFkAssoc.xml 1KB
Employees.xml 9KB
EmpDeptFkAssoc.xml 1KB
HRModule.xml 3KB
vo
DeptMgrFkLink.xml 1KB
LocCIdFkLink.xml 1KB
JobsView.xml 1KB
LocationsView.xml 2KB
EmpJobFkLink.xml 1KB
CountrRegFkLink.xml 1KB
EmpManagerFkLink.xml 1KB
EmpDeptFkLink.xml 1KB
DeptLocFkLink.xml 1KB
CountriesView.xml 1KB
RegionsView.xml 1KB
EmployeesView.xml 3KB
DepartmentsView.xml 2KB
META-INF
adfm.xml 284B
.data
00000000
je.lck 0B
00000000.jdb 60KB
Model.jpr 11KB
ViewController
adfmsrc
view
CascadeLOVBean.java 2KB
DataBindings.cpx 1014B
pageDefs
employeesPageDef.xml 3KB
META-INF
adfm.xml 225B
classes
view
CascadeLOVBean.class 3KB
DataBindings.cpx 1014B
pageDefs
employeesPageDef.xml 3KB
META-INF
task-flow-registry.xml 278B
adfm.xml 225B
.data
00000000
je.lck 0B
0000000a.jdb 250KB
ViewController.cdi_javac 6KB
.wlsjsps
jsp_servlet
__department_jspx.class 8KB
__employees_jspx.class 43KB
public_html
WEB-INF
trinidad-config.xml 205B
adfc-config.xml 1KB
web.xml 5KB
faces-config.xml 230B
temp
adf
styles
cache
fusionFx-v1-1-desktop-wkgodg-en-ltr-ie-7.0-cmp2.css 50KB
fusionFx-v1-1-desktop-wkgodg-en-ltr-ie-7.0-cmp.css 223KB
employees.jspx 7KB
ViewController.jpr 20KB
共 90 条
- 1
资源评论
- niou_writer2013-09-06非常好用,谢谢提供
- feilongy2013-05-07具有一定的参考价值,以后可以多提供者方面的资料。
小尹
- 粉丝: 96
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功