Tuesday 4 April 2017

Calling AmImpl Method from Managed Bean in ADF

To Call AmImpl Method from Managed bean use the following steps;

1) Create the Method in AmImpl class and Expose created method to Client interface by selecting Java tab from AppModule and click on client interface edit icon and move the method into client interface.








2) Write below code in your managed bean class to invoke method from AmImpl.

        OperationBinding ob = getBindings().getOperationBinding("submitEmp");
       ob.getParamsMap().put("<ParameterName>", <Value>); //set the input parameter if there is any else skip this step
        ob.execute();

Note: Make sure you have added same method in binding section of Jsf page (Page where you are referring above method to invoke)

2 comments:

  1. How to add bindings to the page?

    ReplyDelete
  2. Videoslots.cc's YouTube! - Videodl.cc
    We provide videos on YouTube from over 100 leading software developers including mp3 juice I believe you will be able to see the results of my review

    ReplyDelete

Select Multiple values from LOV component (Choice List) on UI

There are scenarios where user wants to select multiple values from Input List of Values (LOV) component and store in DB column as comma se...