2 Replies Latest reply on Dec 12, 2007 2:51 PM by Mike Hanafey

    Tree Component -- best way to get at TreeNode

    Mike Hanafey Newbie

      The "var" attribute of "rich:tree" gives easy access to the "data" property of interface "TreeNode".

      In many cases it is more useful to get at the TreeNode itself (from which the "data" is easily accessible) in order to use an EL to references data stored in a custom TreeNode implementation. One example is to get at a "nodeFace" property that depends on whether the node is editable or not. Another example is the custome TreeNode is good place to implement a "adviseNodeOpened" method.

      Is there a way to get a variable bound to the TreeNode in same way it is easy to get a varialbe bound to "TreeNode.data"?