Header Ads

How to Create Bean in Oracle ADF

Create Bean in ADF 
Bean contains all the properties and functionalities of JSD UI components. Beans has an ability to contain value, instance, validator, converter function of the inputText as well as actionListener, Navigation function and many more. There are so many methods to create Bean in ADF. Here we are creating easiest way of bean step by step

  • Right  Click on ViewController to Create New Java Class.
Add Java Class through ViewController


  • General from Current Project Technologies Tab
    • Select Java Class
    • Click OK
Create Java Class in adf

  • As you click OK Button, you will see Popup in your screen
    1. Name: PrintingProduction (Type your Project Name)
    2. Package: view.beans (Type view.beans)
    3. Click OK.
Detail of your new class

  • Now you Bean Java file has been created.
Printing Production java class has been created

  • Now add java (PrintingProduction.java ) file into Managed Beans.
    1. Click on ADF Standand TaskFlow (adfc-config.xml)
    2. Click on Overview
    3. Click on Managed Beans
    4. Click on + Sign 
Add Java class in managed bean taskflow


  • After click + sign, you can add Name, Class and Scope.
    1. Name : (Type) PrintingProductionBean 
    2. Class :  (Type / Edit with the help of popup) view.beans.PrintingProduction
    3. Scope: request

You can also select your Match Class Name through edit Class (this is an example of above picture point no 2)
Manages bean class property

Bean has been created. You can also create multiple bean with different names. If you have query regarding this post you can ask me / comment below

No comments:

Thank you for your comment...!

Powered by Blogger.