Hi Sean,

thanks for your response.
I found
  src/tomahawk/org/apache/myfaces/custom/tree2/resource/javascript/tree.js
and i believe you talk about
  function treeNavClick(....)

The point is that i think it should be possible to register a Java (not javascript) listener method
to receive the clicks, it is in Java where i need to add sub-nodes.

I don't know where the proper location is for such a listener registration
to follow the JSF philosophy.
tree2 probably needs some refactoring to support this.

regards
Marcel


Sean Schofield wrote:

There is a way to specify a javascript *location* instead of using the
file in the component.   Specify your own javascript location and then
copy the javascript file from the tree2 source to that location.  Then
simply add your own stuff to the onclick.

sean

On 10/5/05, Marcel Ruff <[EMAIL PROTECTED]> wrote:
Hi,

when a user  clicks on the '+' image of the tree to expand
it, i would like to intercept this click to load more data
into my tree model.

How can i register for such an event?

Some code snippets showing the work flow would be very helpful,

thanks
Marcel

PS: I have found some older threads about this topic but
i couldn't find out how to do it.



Reply via email to