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
- P6 Progress Reporter completely integrated into P6 Team Member - August 15, 2017
- Primavera P6 Professional for EPPM Popup 16.2 : The appropriate industry for your organization has not yet been select in admin preferences - August 15, 2017
- Primavera P6 Background Job Error:Creating job Symon Failed to add Database Job, Check the settings table for valid interval values for dbms_scheduler - August 14, 2017