Hi,

I'm currently fiddling a lot with Tree and CheckboxTree and I was wondering
if there is a way to tick -not select- certain nodes of the tree with a
list of ids.

This is what I've tried so far:

CheckboxTree tree;
tree = buildTree();

            tree.setJavascriptEnabled(true);
            tree.setSelectChildNodes(true);
            tree.addListener(this);
            tree.setNotifyListeners(true);;

for(String id : idArrayList) {
                    tree.select(id);
                }

the above selects the node but does not tick the checkbox. I have noticed
that when I hover the checkbox something like this appears as action:

$context/checkbox-tree-page.htm?selectTreeNode=2

however, I can't figure how to set this field since it is a static field of
Tree:

/** The tree's select/deselect parameter name: <tt>"selectTreeNode"</tt>. */
    public static final String SELECT_TREE_NODE_PARAM = "selectTreeNode";

do you have any ideas? Any help will be greatly appreciated.

Greetings,
-Carlos

Reply via email to