Friday 24 June 2016

How To Call AppModuleImpl Class Method In Been Through Binding (First Method)

Hi Every one some time we need to call AppModuleImpl class Method
So , in this post we will see
How we can call a method from AppModuleImpl class
How we can pass parameter to the method


Firstly we need to create method in AppModuleImpl class , for this we need to generate AppModuleImpl class
Simply double click on AppModule , click on java tab , then click on Edit java option
 Checked the check box for AppModuleImpl



Then click on the link to go inside class



At the end of class create your custom method
I have created a method getData , that takes two parameter  a and b , now in method i just print the value of a and b



Then to add this method in client Interface
go to AppModule
click on pen icon
and move getData method from left to right and click ok


Now create a jsf page that contains two input text fields , Then create a been name as ButtonHandler with request scope and create value binding for input text fields to get the value of input text fields in been

To create value binding for input text field ,select the input text field , click on property menu and
select Expression Builder


From the Expression Builder , Expand the ADF Managed Beens
here you will see created been (ButtonHandler)
select ButtonHandler been and click on create property
then write the name of property for example x and select int as data type
after that just click on ok ,ok


Repeat the above step to create value binding for second input text field ...

In Data control you can see the getData method
just drag and drop  getData method on jsf page as a button  , and you will see Edit Action Binding window
Form the Edit Action Binding window you can set the values for method parameter (remember a and b)




To set the value for a parameter just double click on value and select Show EI Expression Builder




Then from Variable select x and click ok ok


 Now again double click on value to set the value of second parameter (b) and select Show EI Expression Builder
Then from Variable select y  and click ok , ok



Finally Right click on jsf page and select Run
now enter value 10 in first field and 20 for second field and click on getData button ,
and look carefully on log screen






Please Feel Free To Ask if you Face any Difficulty 
Like and share to help others
Thanks
Date 24-06-2016

1 comment:

Query to get Business unit (ORGANIZATION_ID) Detail in oracle Fusion

  SELECT HAO.ORGANIZATION_ID AS BUSINESS_UNIT_ID,         HAOT.NAME,         HAO.BUSINESS_GROUP_ID,         HAO.EFFECTIVE_START_DATE,       ...