![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ADF
文章平均质量分 58
realbeckham
这个作者很懒,什么都没留下…
展开
-
ADF 删除已有子记录的行 友好提示
适用场景: 当删除一条已有子记录的记录时,不做任何处理,将弹出数据库的异常,此时做出处理,可向用户进行友好提示。 处理步骤:在主表的EO实现类中重写Remove方法(EO的实现类可以通过设置由系统自动生成,不需要手工编写):1. public void remove() {2. RowIterator ri = thi原创 2012-07-10 17:32:06 · 1039 阅读 · 0 评论 -
ADF11g:将Application Module中的方法发布为webservice
由于步骤比较简单,这里直接写图文步骤1.编写AM代码public class AppModuleImpl extends ApplicationModuleImpl { /** * This is the default constructor (do not remove). */ public AppModuleImpl() { }转载 2014-04-01 16:22:09 · 728 阅读 · 0 评论 -
ADF java代码中 取web.xml 中的参数
在web.xml文件中添加参数 host 120.0.0.1在backing bean中使用下面的代码就可以获取到参数host的值FacesContext fc = FacesContext.getCurrentInstance();ExternalContext exContext = fc.getExternalContext();Strin原创 2014-04-04 15:49:55 · 566 阅读 · 0 评论 -
ADF 页面使用 JavaScript 例子
一、ADF页面中嵌入javascript有两种方式:1、页面中直接写入。举例:Java代码 "javascript"> function sayHello() { alert("Hello, world!") } function sayJianlong() { alert("Hello, world!")转载 2014-05-07 10:34:20 · 1759 阅读 · 0 评论 -
按回车键 组件与服务器进行提交
ADF 调用JS的方法: function queryEnter(event){ var k=event.getKeyCode(); if(k == 13){ // 传入查询按钮id var component = AdfPage.PAGE.f原创 2014-05-07 10:48:10 · 571 阅读 · 0 评论 -
ADF 按钮直接传参 使用 setPropertyActionListener
actionListener="#{pageFlowScope.ProjectManage.updateProject}" action="goCreateProject"> value="false"/>原创 2014-05-19 16:01:56 · 1476 阅读 · 0 评论 -
ADF 选择当前树节点
How-to read data from selected tree nodeBy default, the SelectionListener property of an ADF bound tree points to the makeCurrent method of theFacesCtrlHierBinding class in ADF to synchroniz转载 2014-06-24 11:17:13 · 1518 阅读 · 0 评论 -
ADF UI: Creating Autosuggest LOV
I was curious to know if ADF supports autosuggest LOVs just like google search.. getting suggestions as you type in. Now, I found ADF has a nice way to achieve auto-suggest LOVs. Here is theexamp转载 2014-05-26 15:35:07 · 1095 阅读 · 0 评论 -
ADF 列序号 数字格式化 不输出成英美数字格式
代码: 效果原创 2014-06-30 15:50:53 · 959 阅读 · 0 评论 -
ADF - Groovy for Total Sum of a Column in a Table - adf表格加合计
We will be looking in this article as how we can add Total of a column in a table. Very often we require to have total of a column in a table. For example , we might need total sum of Salary column in转载 2014-06-12 13:49:39 · 996 阅读 · 0 评论 -
adf 常用el 参数
日期:adf.currentDate原创 2013-09-09 20:13:05 · 983 阅读 · 0 评论 -
AM中 直接执行SQL语句
String sqlStr = "insert into flow_flowmodel values(id,name,code) "; DBTransaction db = this.getDBTransaction(); PreparedStatement st = db.createPreparedStatement(sqlStr, 0); try {原创 2014-06-24 16:09:23 · 1408 阅读 · 0 评论 -
Getting all selected rows in ADF Table with multiple rows selection enabled
Getting all selected rows in ADF Table with multiple rows selection enabledWhen we build a web application which contains an ADF Table (with multiselect option), in many cases, we require to get a转载 2015-04-22 16:26:09 · 1056 阅读 · 0 评论 -
Jdeveloper 12c 实体主键自动生成 使用 oracle.jbo.server.SequenceImpl 报错
问题:Jdeveloper 12c 实体主键自动生成 使用 oracle.jbo.server.SequenceImpl 报错解决:在自动生成的代码中,去掉 trustMode="untrusted" 或者 改为 trustMode="trusted"原创 2015-07-08 09:50:40 · 865 阅读 · 0 评论 -
adf 自定义重复查询例子
需求:某字段保存前,需查询数据库中是否有重复记录。页面代码: label="#{bindings.OsmResourceTree1.hints.ResCode.label}" required="#{bindings.OsmResourceTree1.hint原创 2015-07-16 10:15:28 · 644 阅读 · 0 评论 -
adf表格 单双行用不同的颜色渲染
修改adf的Table单双行颜色原创 2015-08-04 14:36:52 · 589 阅读 · 0 评论 -
selectOneChoice table filter for LOV column
In this post I am going to show how to add a selectOneChoice component as a filter for a column with LOV.When displaying data into tables and using the out-of-the-box filtering feature, you might转载 2014-01-13 17:26:48 · 1020 阅读 · 0 评论 -
Weblogic 部署ear文件 如何更新class文件
我的项目是ear项目,以前都是打包部署,如果更改了类,需要重新打包,比较麻烦,看了weblogic的文档后使用展开目录部署,即将myWebEAR.ear,展开为myWebEAR,目录结构如下 ,注意如果ear包里有war包,也必须将war包展开,而且展开后的文件夹名称要为myWeb.war ,因为打包的时候生成的配置文件的目录名是myWeb.war,展开的方式可以在本地用rar解压,也可以上传转载 2014-01-10 18:07:18 · 7239 阅读 · 0 评论 -
Oracle ADF 100个例外 Business Components Error Messages
Oracle ADF Business Components Error Messages The prefix "JBO-" signifies that the following messages were generated by Oracle ADF Business Components. All messages are listed in order by the message转载 2014-01-09 16:33:40 · 4069 阅读 · 0 评论 -
ADF Input File组件使用不正常
JSF页面中,使用Input File组件时,所在的Form需要加属性usesUpload="true",否则组件不能正常使用,如果使用了模板,则需找到相应的模板Form,加入属性。原创 2012-07-10 17:25:30 · 488 阅读 · 0 评论 -
ADF backingBean 取前台组件最新值
ADF valueChangeEvent事件中,需要取某组件的最新值时,需要以下代码,以使组件值更新到model中,即backingBean中能取到前台组件中的最新值。 FacesContext contxt = FacesContext.getCurrentInstance();valueChangeEvent.getComponent().processUpdates(c原创 2012-07-30 16:29:53 · 454 阅读 · 0 评论 -
ADF backingBean 弹出提示信息窗口
/** * 弹出提示窗口 * @param level 级别(默认info) * @param detail 提示信息。 */ public static void popupMessage(String level,String detail){ FacesMessage fm = new FacesMessag原创 2012-07-30 16:39:44 · 908 阅读 · 0 评论 -
How-to read data from selected tree node
By default, the SelectionListenerproperty of an ADF bound tree points to themakeCurrent method of theFacesCtrlHierBinding class in ADF to synchronize the current row in the ADFbinding layer with the转载 2012-07-30 17:32:34 · 858 阅读 · 0 评论 -
ADF 双击 Table 跳转到另一个视图
双击table中的某行,然后跳转到该行的查看视图。分别在页面 Table组件中加入 客户端监听和服务监听,加入JS代码,调用BackingBean,执行跳转。ADF Table 中需要的属性:页面中Table组件,加粗部分为需要添加的代码。 var="row"原创 2012-11-14 15:06:12 · 1337 阅读 · 0 评论 -
BackingBean直接调用AMImpl中的方法
可以执行 按钮的Action执行的方法,也可以执行ActionListener的方法,后者先执行,二者的方法参数和返回值不一样。直接通过 ADFUtils.getApplicationModuleForDataControl()方法 获得am实例,调用方法即可 public void importIntoPMS(DialogEvent dialogEvent) {原创 2012-11-14 15:27:16 · 506 阅读 · 0 评论 -
Some handy code for backing beans ( ADF & JSF )
Some handy code for backing beans ( ADF & JSF )Here some code which you can use in your backing beans, I use this code all the time. With this you can retrieve the data or actions from the ADF pag转载 2012-07-30 16:55:23 · 524 阅读 · 0 评论 -
把AM中的方法发布为WebService
实际应用中,我们经常需要在AM中添加自己的方法,这些方法可以以Data Control的方式暴露出来,供ADF Faces使用。但那些使用了非ADF技术开发的应用如何使用AM中的方法呢?这里介绍最简便的一种方法:把AM中的方法暴露成WebService。重要步骤说明:1. 创建应用时选择General Application,为Project1增加ADF BC Componen转载 2012-07-30 17:24:51 · 901 阅读 · 0 评论 -
ADF EO 字段 唯一性验证
ADF Unique Key ValidationPerforming a unique key validation for an attribute that is declared to be unique in the database requires a round trip to the database. This is quite expensive and th转载 2013-04-12 11:29:25 · 1435 阅读 · 0 评论 -
在Jdeveloper 11gR2中传递url参数到由task flow构成的区中
在Jdeveloper 11gR2中传递url参数到由task flow构成的区中1、建立环境。新建fusion web application-->PassVar在默认任务流 adf-config.xml里面创建view welcome和相应的jsf页面。新建bounded任务流passVar.xml 在任务栏中添加view test和相应的jsf转载 2013-04-15 11:23:06 · 784 阅读 · 0 评论 -
ADF BC 组件的运行时介绍 -1 Application Module的状态管理
ADF BC 框架中提供了开箱即用的应用‘状态管理’的功能。所谓状态管理,英文就是State Management,指的是维护用户在使用应用系统时的会话状态。概念上可能会和Http Session对象混淆。ADF BC提供状态管理是独立于Http Session机制的,自成体系的一个机制。状态管理基本概念首先来说,为什么需要状态管理?在一个应用被用户使用过程中,每个用户会有很多转载 2013-04-16 10:08:34 · 762 阅读 · 0 评论 -
How to access selected rows in an af:selectManyChoice component
How to access selected rows in an af:selectManyChoice componentBy Frank Nimphius on Jan 18, 2012To create an ADF bound select many choice component, drag a collection from the Data Controls pa转载 2013-05-24 09:04:54 · 714 阅读 · 1 评论 -
Cannot 'Synchronize with database' my entity objects
I found a solution which seems to work. we haven't found any drawbacks yet and the application runs just fine.The problem with our project, was the type mapping value, which has been changed to "J转载 2013-05-24 15:23:28 · 642 阅读 · 0 评论 -
ADF ViewObjectImpl 的 findByAltKey 方法使用例子
JAVA代码如下: //定义VoImpl ViewObjectImpl vo = this.getExamSingleView(); //将参数装入Key中, 参数 userId,projectId 是定义在 Entity 中的两个参数 Key key = new Key(new Object[] { userId,projectId });原创 2013-12-30 14:23:17 · 1325 阅读 · 0 评论 -
AMImpl 中 执行sql语句的例子
执行更新语句的例子 public void updateExamHourFromUser(){ String sql = " update exam_single s set s.finish_hours = (select sum(h.fill_hour) from exam_single_hour h where s.id = h.exam_single_id ) ";原创 2013-12-30 14:35:40 · 1320 阅读 · 1 评论 -
Using IN operator on VOs
Using IN operator on VOs31. Using IN operator on VOsIssue: IN operator is not part of the default operators available on the VOs. But, based on a particular requirement, this might be needed to转载 2016-03-16 14:22:17 · 505 阅读 · 0 评论