Hi,

just add all nodes which should displayed as selected to the selected
set in the treeState:

selectedTrees.getSelection().add(node);

Regards,

 Volker


2006/12/8, Wong, Emmanuel (Sam) <[EMAIL PROTECTED]>:
Hi:
        Is there a way you could able to display back what you have
saved in the database by indicate a checkmark on the Tobago tree?  I
have set the selectable="multiLeafOnly".  When user selected the leafs
that would like to save it in the database, then user retrieve back the
selected leafs and display with a check mark as indicated the leafs was
what he saved last time. Later user could de-selected the check box for
removing the existing leaf?  Htanks.


<tc:tree value="#{Controller.Tree}"
                state="#{Controller.selectedTrees}"
                id="Tree" idReference="userObject.id"
                nameReference="userObject.name" showIcons="true"
                                                showJunctions="true"
showRootJunction="true" showRoot="true"

selectable="multiLeafOnly"
                                                mutable="false">
                                        </tc:tree>



Reply via email to