Hi All,
I’ve used the treeview bean before and have had relations from one table to another, but now I can’t get my head around how I would base it on a single table. Best way to explain would be to tell you guys my scenario:
I have navigation table which is based on levels ids and mother ids. so for example :
mother id1–|
'----child 1
'----child 2
'------------child 2a
'------------child 2b
'----child 2c
'------------child 2ca
'------------child 2ca
'----child 3
mother id2–|
'----child 1
'----child 2
'------------child 2a
'------------child 2b
'----child 2c
'------------child 2ca
'------------child 2ca
'----child 3
The structure will eventually go very deep so many childs under childs etc.
All the data are held in a single table called navigation with mother ids and level ids.
What’s the best way of implementing this in the treeview bean?
I tried to have a global selected Id and create the child nodes on selection, but I couldn’t get it to work, and Im not sure if this is th ebest approach as it will not
show the [+] idicator at the start to idicate that there are children for a particular mother id.
Should I be using the treeview at all for this or is there a way of easily implementing this using the treeview that I have missed out on?
Thanks in advance,