primefaces - Acces Treenode using Rowkey -
i have rowkey(say 0_0,0_1,etc) of treenodes, there simple way node rowkey or need iterate on entire treenode.
the below code doesnt work
private treenode getnode(treenode node, string key) { for(treenode child : node.getchildren()){ if(key.equals(child.getrowkey())) return child; return getnode(child,key); } return null; }
to make short possible it's impossible node rowkey because type of informations pass jsf page been it's string 1 mean it's impossible retrieve data informations, said in question solution have loop in tree search it.
Comments
Post a Comment