Somehow I don't know why the extra dummy nodes occurred during the run-time. After I had modified the node loading function, the extra nodes have gone but my initial problem appears again - I can't get the node id after nodes were loaded in one process, resulting in deeper level nodes not be loaded.
I created two files to reproduce the issue:
1. TreeViewTestController, server side code which includes sample class Employee to made tree nodes
Steps to reproduce:
After index shown top node with two direct children are loaded.
1. select top Node "CEO" if it is not highlighted( see first image on attached doc file)
2. put 7 (Fifth level note id) in the text box
3. click button "Load this child"
Program should load Level3, level4 and level5 in turn, eventually hit level 5 node with id="7"
But the program stops at level two (see third image on attached doc file) since id field is empty for every loaded field. But if I uncomment statement alert("After this message you could see loaded nodes and nodes data") within function doLoadChildredNode(), all the nodes are loaded as expected ( see second image on attached doc file).
My question is that how do I load all the level nodes without alert() statement ?
Really appreciate your time and help. This issue bother me a lot.