How to Create Bean in Oracle 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.
- General from Current Project Technologies Tab
- Select Java Class
- Click OK
- As you click OK Button, you will see Popup in your screen
- Name: PrintingProduction (Type your Project Name)
- Package: view.beans (Type view.beans)
- Click OK.
- Now you Bean Java file has been created.
- Now add java (PrintingProduction.java ) file into Managed Beans.
- Click on ADF Standand TaskFlow (adfc-config.xml)
- Click on Overview
- Click on Managed Beans
- Click on + Sign
- After click + sign, you can add Name, Class and Scope.
- Name : (Type) PrintingProductionBean
- Class : (Type / Edit with the help of popup) view.beans.PrintingProduction
- Scope: request
You can also select your Match Class Name through edit Class (this is an example of above picture point no 2)
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...!