No you don't need to know which nodes to append the action listener
to.  That is all handled for you in JSF.  As long as you re-render
your tree after you dynamically add or remove nodes, then you will be
ok.  Take a look at the simple examples.  They don't have dynamic
data, but they do show you how the same actionListener works for all
of the nodes.

sean

On 8/4/05, Balaji Saranathan <[EMAIL PROTECTED]> wrote:
>  
> 
> Hi, 
> I've started to use Tree2 in my project. However, I'm having some trouble
> understanding it. Hope someone can throw some light. 
> 
> I have the tree as part of the left side frame. Now, each node on the tree
> is actually a link that should open up a new jsp page in the body frame. I
> looked at the example and assume that I would associate an action listener.
> But doesnt adding an actionlistener mean I should know statically, what each
> node links to? My problem is that the nodes can be appended dynamically
> which means I need to add links as nodes to the tree that can open new JSP
> pages. 
> 
> I'm kinda lost on how to implement it? Any help is greatly appreciated. 
> Thanks 
> Bala 
> 
>  
>  Confidentiality Notice 
>  
>  The information contained in this electronic message and any attachments to
> this message are intended
>  for the exclusive use of the addressee(s) and may contain confidential or
> privileged information. If
>  you are not the intended recipient, please notify the sender at Wipro or
> [EMAIL PROTECTED] immediately
>  and destroy all copies of this message and any attachments.
>

Reply via email to