Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to execute action method programmatically?

User0256Oct 6 2012 — edited Oct 9 2012
Hi all,
I'm using Jdev 11.1.1.5.0

I have created two pages pg1,pg2 with a template(template consists button). in the page pg1 I dragged a taskflow(consists fragment) as a region.
In the fragment bindings, i added an action.
I need to click the button to navigate from pg1 to pg2. but before navigate from pg1 to pg2, i need to execute the action which is added in the bindings of the fragment.
so, i created a bean and tried to execute that action through binding container in the button action listener.

bindings = getBindings();
OperationBinding act = bindings.getOperationBinding("Rollback");
act.execute();

but i get the nullpointer exception at the line act.execute()

I thought it is becuase, button is on the template, and the Rollback iis addRed as action binding on the fragment.

so, how can I execute that Rollback action.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 6 2012
Added on Oct 6 2012
19 comments
941 views