Thursday 20 March 2014

Oracle ADF : How to invoke AM method from Managed bean ?



How to invoke AM method from Managed bean ?

1.Take instance of AM in manage bean method It can be done in following ways –

a. Accessing the Application Module Client Interface in a JSF Backing Bean Using a Named Action Binding

b. Accessing the Application Module Client Interface in a JSF Backing Bean Using a Named Iterator Binding

c. Using Configuration.createRootApplicationModule()

Implementation of first two options a and b can be found here

The third option c is normally avoided one because it leads to creating additional application module instances which are distinct from the AM instance that is automatically checked out and checked in for you by the ADF data binding layer for use by your UI pages and task flow method call activities.. A detailed description can be found here

2.After getting the instance we can call its method defined in AMImpl class or we can also call using OperationBinding as described previously.

No comments:

Post a Comment