For the Data Tree component, you can create event handlers for
the individual nodes or for the tree as a whole at a global level.
Note: Data Tree <odc:tree> and Chart <odc:graphDraw> have
been enabled to use Server Data.
Note: The Data Tree
control's <odc:treeNodeAttr> tag uses different values
for its className attribute when bound to SDO data versus WDO data. After
migrating a project from a server that uses WDO (such as WebSphere® Application
Server 5.1) to one that uses SDO (such as WebSphere Application Server 6.1),
the easiest way to fix this is to delete and recreate any Data Tree controls.
In
order to write event handlers for a particular node type in the Data Tree,
for example, for the nodes representing departments, perform the following
steps:
For more information on Data Tree event properties, refer to
Event handlers for Faces Client components. The odc:tree event handle requires
knowledge of eObject in order to gather information the selected node. For
information on eObject, refer to Chapter 6: JavaScript Library in
FacesClient Components Developer's Guide. Typical
usage of eObject is similar to
value = thisEvent.eobject.eGet("refNum");
Where
refNum is
an attribute of the tree node.