Posts Tagged ‘OAF’

The wrong and right way to avoid invokeMethod in OAF Controllers

Friday, August 14th, 2009 by Barry Goodsell

If you look at the tutorials supplied by Oracle with OA Framework, you’ll see in their Controllers that they use invokeMethod to indirectly call methods in the Model (ie: the BC4J Application Module). I understand why Oracle recommends that you do it this way – it ensures that there are no dependencies between the various parts of the Model, View and Controller.

Here is a simple example:

package abc.oracle.apps.xyz.po.webui;

import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
import oracle.apps.fnd.framework.webui.OAControllerImpl;

class updatePo extends OAControllerImpl
{
  public void processRequest(pageContext, webBean)
  {
     OAApplicationModule am = pageContext.getApplicationModule(webBean);
     am.invokeMethod(”initQuery”);
  }
}

Read the rest of this entry »

An introduction to OA Framework

Tuesday, July 14th, 2009 by Barry Goodsell

In case you’ve never heard of OA Framework, here’s a brief marketing-style synopsis:

Oracle Application Framework is the development and deployment platform that Oracle themselves have used for the past few years to develop the Oracle E-Business Suite “Self-Service” or web-based applications. OA Framework embraces the principles of developer and end-user productivity, performance and flexibility through the use of open standards. The Framework, based on the industry-standard Model-View-Controller design pattern, can be used to develop extensions to existing eBusiness Suite functionality or completely bespoke Self-Service applications.

So, what does that mean in real terms? Oracle themselves have been using OA Framework to develop all new E-Business Suite screens for the past few years, eschewing the traditional Oracle Forms 6i development tool. We’ve all seen the wonderful web-based screens that have been released by Oracle. Personally, I’ve been itching to get my hands on the technology used to build them for quite some time. It’s only since Release 11.5.10 that Oracle have let the rest of us have a play with their new toy.

Read the rest of this entry »