136 total views, 1 views today
Create an auto populate ADF SelectOneChoice
This is a continuation of the post ‘creating LOV’. In this section, we are going to create two combo boxes ‘Region’ and ‘Country’ and deploy it on the WebLogic server. When a user is selecting a region, the countries related to the region populates automatically. We do it through ADF methods AUTOSUBMIT and PARTIALTRIGGER.
- Follow the post creating LOV to create view and Entity objects for Employee, Country, and Region
Create a JSF Page in View Controller by Right click on the Web Content under the ViewController >> Click New >> JSF Page
Input a Name for JSF >> click Ok
Drag the EmployeeEoVo object from DataControl and Drop it to the index.JSF as shown below >> Choose Form >> ADF Form
Enable the Include Navigation Control >> Click Ok
Now Select the Region in the index.JSF >> Go to Property >> Expand Behavior >> Make the AutoSubmit to true as shown below
Click the Source tab of the index.jsf >> Find the ID attribute of the Region >>Copy the ID attribute. We need to paste the ID attribute in Country Element.
Click the Design tab >> Select the Country attribute >> Go to properties >> Expand Behavior >> Paste the ID in PartialTriggers as shown below >> Save all
Deploy and Test the application
Right, click on the index.JSf and Select Run
The integration WebLogic wizard prompts you if it is not configured already, else the application gets deployed and open the page in the browser.
As shown in the image below, when a region gets changed, the countries get changed automatically
The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.
Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
Latest posts by Govind
- How to encode and decode base64Binary datatype in Oracle BPEL - December 11, 2017
- How to Read a File using Oracle BPEL File Adapter Example - December 11, 2017
- How to write a File using Oracle BPEL File Adapter Example - December 10, 2017