Monday, November 1, 2010

RE: repositioning node in a celltree

 

Hi!

 

did someone already modify successful a celltree's structure programmatically?  I want to change the parent of a node programmatically and see the changes displayed on the screen. What I do now is the following:

·        remove the considered node's value from the old parent's ListDataProvider using ListDataProvider#getList()#remove ().

·        add the considered node's value to the new parent's ListDataProvider using ListDataProvider#getList()#add()

·        call ListDataProvider#refresh on both old and new parent ListDataProviders.

 

I expected to see the old node move from the old to the new parent. But what occurs instead, is that the node I wanted to move just disappear from the tree.

What can be the problem?

 

And I would also like to know, if there is a way to tell to a CellTree to redraw itself because the backed data have changed.

 

Thanks for any help.

Rodrigue

No comments:

Post a Comment