I am trying to use the TreeTable component in an hibernate / spring application which deals with Task and sub-Task.
I have tested the WorkLog example for treetable component and have slightly modified it to suit my needs.
1>. Instead of WorkRecord and CompositeRecord I have one class called Task which has a collection of Tasks (children) and a groupItem ( for parent).
now when i load the whole Tree the nodes of the tree are created with children , but the children is not visible in the view…
[font=Verdana]
I realized that i was not calling addBean for each of the child nodes.
But now when i call addBean, each of the child nodes appear twice…infact if a child node is 3 level down, it appears thrice.
Apparently i have not understoond the BeanItemContainer and ContainerHierarchical concept at all