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”);
}
}
