I am using the ajax component within the dynamic tree widget and cannot ,
after numerous tries, to get
the tree to function without having the completed modle at the backend.
I had hoped that I could create sub level leaf node structure within the
callback for the node being selected.
This seemed to work at the top level but after that , no events are trapped
for any sub children that I create dynamically within the tree model.
Within the callback.
TreeNode2 thisNode= ne.getEventNode();
logger.debug("ID is "+thisNode.getId());
int eventType = ne.getEventType();
if ( eventType == TreeNode2Event.LOADCHILDREN_EVENT) {
thisNode.setExpanded(true);
logger.debug("Load children event occured");
// lets find out if we have to show any children
// get the id of the node so that we can find out where we are.
// walk backwards up the tree
thisNode.getChildren().clear(); // get rid of the empty node.
// we need to find out the name of the folder we are looking at
String path = this.constructPath(thisNode);
logger.debug("PATH we are looking at is "+path);
this.constructChildren(thisNode, new File(path));
....
Wtihin the constructChildren I am appending mode children to the node that
has just been clicked.
( This is part of a file browser type application ).
However, each sub node click never invoked the callback.
I am setting the method expression correctly within the code and have
checked this with a test application.
It would appear that the woodstock components have a snap shot of the
structure.
Can any one help here ???
--
View this message in context: http://www.nabble.com/Dynamic-Tree-Cant-change-back-end-data-dynamically-tp18569316p18569316.html
Sent from the Project Woodstock - Dev mailing list archive at Nabble.com.