Tag Archives: ADF

How to create a Custom ADF Component

In this tutorial, we will create a custom ADF Component. Create new files and package structure as shown: Source Code of the required files is as below: AlertDemo.java package com.techutils.adf.jsf.faces.component; import javax.faces.event.AbortProcessingException; import javax.faces.event.FacesEvent; import org.apache.myfaces.trinidad.bean.FacesBean; import org.apache.myfaces.trinidad.bean.PropertyKey; import org.apache.myfaces.trinidad.component.UIXObject; … Continue reading

Posted in Oracle, Oracle ADF | Tagged , , , , , , , | Leave a comment

Retrieve GET parameters from URL in Managed Bean in Oracle ADF

For obtaining parameter from URL in java code in Oracle ADF use the below code URL: http://127.0.0.1:7101/Application-ViewController-context-root/faces/page.jspx?paramName=Testing123 Use the code: String test = FacesContext. getCurrentInstance().getExternalContext().getRequestParameterMap().get(“paramName”);

Posted in Oracle, Oracle ADF | Tagged , , , , , | Leave a comment

How to add DVT Graph Programmatically

This tutorial is to show how to inject a DVT graph programmatically in Oracle ADF Step 1: Define a List Data Model: Java Code for Data List<Object[]> listObject = null; if (listObject == null) { listObject = new ArrayList<Object[]>(); Object[] … Continue reading

Posted in Oracle, Oracle ADF | Tagged , , , , | Leave a comment

How to add ValueChangeListener Programmatically

Using an EL String, we can add ValueChangeListener in Oracle ADF using the below code: private static MethodBinding getValueChangeListener(String el) { Class[] parms = new Class[] { ValueChangeEvent.class }; MethodBinding mb = FacesContext.getCurrentInstance().getApplication().createMethodBinding(el, parms); return mb; } pass the EL … Continue reading

Posted in Oracle, Oracle ADF | Tagged , , , , | Leave a comment

How to Add an ActionListener programmatically

Using an EL String, we can add ActionListener in Oracle ADF using the below code: private ActionListener getActionListener(String el) { //here Testbean is the name of ManagedBean MethodExpression methodExp = getMethodExpressionForAction(el); return new MethodExpressionActionListener(methodExp); } private MethodExpression getMethodExpressionForAction(String actionName) { … Continue reading

Posted in Oracle, Oracle ADF | Tagged , , , , | Leave a comment

See exact query execution in Oracle ADF

Challenge You want to be able to see all the sql-statements and DML-statements that your ADF application is executing. Solution Just add the following java option to the run configuration : -Djbo.debugoutput=console While this will give you everything you need, … Continue reading

Posted in Oracle ADF | Tagged , , , , | Leave a comment

Create Declarative Component with Modal

Originally posted on Middleware by Link Consulting:
During an ADF application development sometimes you probably find yourself doing the same set of specific components more than once in different pages or even in the same page. If you are facing…

Posted in Oracle, Oracle ADF | Tagged , , , , , | 1 Comment