5 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.

Process:

  • 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

    051316_0510_CreateaForm1 Create an auto populate ADF SelectOneChoice

  • Input a Name for JSF >> click Ok

    051316_0510_CreateaForm2 Create an auto populate ADF SelectOneChoice

  •  

    Drag the EmployeeEoVo object from DataControl and Drop it to the index.JSF as shown below >> Choose Form >> ADF Form

    051316_0510_CreateaForm3 Create an auto populate ADF SelectOneChoice

    Enable the Include Navigation Control >> Click Ok

    051316_0510_CreateaForm4 Create an auto populate ADF SelectOneChoice

  •  

    Now Select the Region in the index.JSF >> Go to Property >> Expand Behavior >> Make the AutoSubmit to true as shown below

    051316_0510_CreateaForm5 Create an auto populate ADF SelectOneChoice

    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.

    051316_0510_CreateaForm6 Create an auto populate ADF SelectOneChoice

    Click the Design tab >> Select the Country attribute >> Go to properties >> Expand Behavior >> Paste the ID in PartialTriggers as shown below >> Save all

    051316_0510_CreateaForm7 Create an auto populate ADF SelectOneChoice

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

051316_0510_CreateaForm8 Create an auto populate ADF SelectOneChoice

 

govindan Create an auto populate ADF SelectOneChoice
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

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 šŸ™‚
govindan Create an auto populate ADF SelectOneChoice
Connect me
By | 2016-12-28T23:57:51+00:00 May 13th, 2016|Categories: ADF|Tags: , , |0 Comments
Like us on Facebook.
Connect!