Tag Archives: Oracle 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

Insert Rows in ADF View Object Programatically

Suppose that I have EmpVO view object which have below attributes EmpId, FirstName,¬†LastName We can do inserting rows by two ways in data model layer (Application Model or View Object classes) I will write my code in ApplicationModuleImpl class try … Continue reading

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

When and how much to mix technologies for a project?

The main idea behind using a technology is to harness the power of code re-usability and libraries that have already been worked on and trusted to be working and functional with minimal or no issues. The term “Technology” does not … Continue reading

Posted in Oracle, Oracle ADF, Oracle SQL, OSB, Weblogic | 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