I've noticed that I'm not able to get server-side the id value
of the selected TreeNode. I was developing a module and it didn't
work, so I carbon-copied the example in the docs:
http://webdev2.sun.com/woodstock-tlddocs/webuijsf/tree.html
(Example 4: Dynamic Tree)
and it didn't work either.
The problem is here:
-------------------------------------------------------------
| public String addNode() {
String nodeId = getDynamicTree().getSelected();
if (nodeId == null) {
return "";
} |
...
-------------------------------------------------------------
The getSelected always returns null, whatever node I click on and then
press "add child".
I don't know if I'm doing something wrong or there is some issue here...
I'm using netbeans 6.1 (last update) + glassfish v2 + sun java 6
Thanks for any help.