Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to build parent child relationship in adf UI using af - data structure list and hashmap of java

User_LW4VEJan 20 2021 — edited Jan 20 2021

I need to build an UI,
using java data structure ,JSF af
Parent row will have one select one choice and radio button and parent row will have multiple children displayed in the table.
So UI will have multiple parent rows and each parents will have corresponding multiple children's.
All these relationship I need to build in the UI adf form using af.
From Java backend I get an object of List<parents> where each parent is again having parent id as key and list of children objects.Say for eg HashMap<Long parent id,List<childrens>>().
Let me know how to iterate this java object from bean in UI and maintain this List<Parents> and each Parents object is HashMap<Long parent id,List<childrens>>()
I need to maintain this relation ship from UI to bean also where I can edit the parent,children records and also delete each parent and children records.
So,I need to build this datastructure in UI and also build this relationship from UI back to my bean for save,edit,delete.
I am planning to use af:iterator for parent and af:table to display parent child relationship in UI using adf ,java.
And I need to populate back above data structure relation ship back to my bean for save,update,delete.
Need help on how to build this releationship in UI.
Thanks,

Comments
Post Details
Added on Jan 20 2021
3 comments
601 views