I would like to share my experience with Tree control in WebDynpro and recursive context nodes.
The first thing worth noticing is that Tree control can exist in two flavours. One is when the tree structure is known at design time, and the second when the tree structure is dynamic. In my weblog I focus on the dynamic flavour.
Dynamicly structured tree is generated somehow automatically based on context structure. I.e. one context node corresponds to one tree node, and descendant context nodes are visualized as descendant tree nodes. The simplest way to provide such a context structure is to use recursive context node and build context structure dynamically. This approach is also correct, because the data one can store have flat (table-like) structure, not a tree-like structure.
The weblog covers
The first thing to do is to create proper context structure in the controller.


provides a tree that looks like this :

Now, how to check which node is clicked ?