GVKun编程网logo

ORACLE ADF11g:EO List验证(oracle rac验证)

1

对于ORACLEADF11g:EOList验证感兴趣的读者,本文将会是一篇不错的选择,我们将详细介绍oraclerac验证,并为您提供关于ADF11g-007:ADF中如何将两个独立的LOV实现级联、

对于ORACLE ADF11g:EO List验证感兴趣的读者,本文将会是一篇不错的选择,我们将详细介绍oracle rac验证,并为您提供关于ADF11g-007:ADF中如何将两个独立的LOV实现级联、ADF11g-031:将Application Module中的方法发布为webservice、ADF11g:将Application Module中的方法发布为webservice、For oracle databases, if the top showing the oracle database, then oracle process is using the top c的有用信息。

本文目录一览:

ORACLE ADF11g:EO List验证(oracle rac验证)

ORACLE ADF11g:EO List验证(oracle rac验证)

在ADF的EO中,提供了很多对数据验证的方式,其中有一种是LIST验证。接下来我就用MONEY字段为例子,告诉大家如何使用LIST验证。


图解:

完。

ADF11g-007:ADF中如何将两个独立的LOV实现级联

ADF11g-007:ADF中如何将两个独立的LOV实现级联

在网上看到很多基于一个VO中的两个Atttribute的lov实现级联的例子,本文描述如何将两个独立的lov实现级联,以Oracle实例数据库HR中的DEPARTMENTS和LOCATIONS两个表为例,根据DEPARTMENT中的列location_id过滤department列表的值。

1.建立ADF项目DepartmentView的Query如下

SELECT Departments.DEPARTMENT_ID,Departments.DEPARTMENT_NAME,Departments.MANAGER_ID,Departments.LOCATION_ID FROM DEPARTMENTS Departments WHERE (Departments.LOCATION_ID = :locationId or :locationId is null)

locationId的值设置为adf.context.requestScope.

locationIdvlaueType选择Expression

 

 2.建backing Bean

 

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(); } //获取下触发下拉列表的值,并将值放入Request Scope,VO中使用Groovy表达式取得 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; } }

3.配置backing Bean,给CascadelovBean中的属性赋值

<?xml version="1.0" encoding="UTF-8" ?> <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2"> <managed-bean id="__2"> <managed-bean-name id="__3">CascadelovBean</managed-bean-name> <managed-bean-class id="__1">view.CascadelovBean</managed-bean-class> <managed-bean-scope id="__4">request</managed-bean-scope> <managed-property id="__7"> <property-name id="__5">listBinding</property-name> <value id="__6">#{bindings.LocationList}</value> </managed-property> <managed-property id="__9"> <property-name id="__10">iteratorBinding</property-name> <value id="__8">#{bindings.DepartmentsView1Iterator}</value> </managed-property> <managed-property id="__12"> <property-name id="__11">attributeName</property-name> <value id="__13">LocationId</value> </managed-property> <managed-property id="__16"> <property-name id="__14">parameterName</property-name> <value id="__15">locationId</value> </managed-property> </managed-bean> </adfc-config>

4. 页面,给location list绑定CascadelovBean的valuechangelistener方法,将Department List的partialTriggers指向Location List

<af:panelFormlayout id="pfl1"> <af:selectOneChoice label="Location" value="#{bindings.LocationList.inputValue}" id="soc1" valuechangelistener="#{CascadelovBean.valuechangelistener}" autoSubmit="true"> <f:selectItems value="#{bindings.LocationList.items}" id="si1"/> </af:selectOneChoice> <af:selectOneChoice label="Department" value="#{bindings.DepartmentList.inputValue}" id="soc2" partialTriggers="soc1"> <f:selectItems value="#{bindings.DepartmentList.items}" id="si2"/> </af:selectOneChoice> <af:commandButton actionListener="#{bindings.ExecuteWithParams.execute}" text="Search" disabled="#{!bindings.ExecuteWithParams.enabled}" id="cb1"/> </af:panelFormlayout>

 

程序包请到以下连接下载

http://download.csdn.net/detail/ygj26/4077019

http://www.jdeveloper.com.cn/forum.php?mod=viewthread&tid=7

ADF11g-031:将Application Module中的方法发布为webservice

ADF11g-031:将Application Module中的方法发布为webservice

由于步骤比较简单,这里直接写图文步骤

1.编写AM代码

public class AppModuleImpl extends ApplicationModuleImpl {
    /**
     * This is the default constructor (do not remove).
     */
    public AppModuleImpl() {
    }
    
    public String sayHello(String name) {
        return "Hello," + name;
    }
}

2.创建webservice

打开AM,在Service Interface面板中,点击右上方的添加按钮,在弹出的对话框中选择




3.创建部署文件

双击Model项目,在Deployment面板,新建部署文件


此步骤的同时,application自动创建可部署的ear文件


4.部署测试

输入URLhttp://shown:7101/AMServcie-Model-context-root/AppModuleService


ADF11g:将Application Module中的方法发布为webservice

ADF11g:将Application Module中的方法发布为webservice

转自:http://blog.csdn.net/ygj26/article/details/8668832


由于步骤比较简单,这里直接写图文步骤

1.编写AM代码

public class AppModuleImpl extends ApplicationModuleImpl {
    /**
     * This is the default constructor (do not remove).
     */
    public AppModuleImpl() {
    }
    
    public String sayHello(String name) {
        return "Hello," + name;
    }
}


2.创建webservice

打开AM,在Service Interface面板中,点击右上方的添加按钮,在弹出的对话框中选择




3.创建部署文件

双击Model项目,在Deployment面板,新建部署文件


此步骤的同时,application自动创建可部署的ear文件

4.部署测试

输入URLhttp://shown:7101/AMServcie-Model-context-root/AppModuleService

For oracle databases, if the top showing the oracle database, then oracle process is using the top c

For oracle databases, if the top showing the oracle database, then oracle process is using the top c

Note 805586.1 Troubleshooting Session Administration (Doc ID 805586.1) Note 822527.1 How To Find Where The Memory Is Growing For A Process (Doc ID 822527.1) Note 273646.1 How to diagnose the high cpu utilization of ORACLE.EXE in Windows environment Note 728539.1 Find Blocking Sessions In sqlPLUS Note 61552.1 Troubleshooting Oracle Database Hanging Issues for versions from 7 to 9--Exhaustive Note 164760.1 Detecting and Resolving Locking Conflicts using TopSessions

关于ORACLE ADF11g:EO List验证oracle rac验证的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于ADF11g-007:ADF中如何将两个独立的LOV实现级联、ADF11g-031:将Application Module中的方法发布为webservice、ADF11g:将Application Module中的方法发布为webservice、For oracle databases, if the top showing the oracle database, then oracle process is using the top c等相关内容,可以在本站寻找。

本文标签: