That's what I was getting at earlier.  You can use a value binidng for
your param value and refer to the node "identifier" to give it some
unique value.

sean

On 8/4/05, Dennis Byrne <[EMAIL PROTECTED]> wrote:
> Try nesting an f:param inside each commandLink.  In it,
> places any information that you want to make decisions with
> in the target JSP.  This might eliminate the "need to know in
> advance".
> 
> ---- Original message ----
> >Date: Thu, 4 Aug 2005 12:17:17 -0400
> >From: "Balaji Saranathan" <[EMAIL PROTECTED]>
> >Subject: RE: Tree2 Implementation help
> >To: "'MyFaces Discussion'" <[email protected]>
> >
> >
> >Ok,
> >
> >Assuming I attach a actionlistener that will be called on
> any click of
> >command links(node description), should the action listener
> get the
> >value of the node and then forward the request to open
> corresponding JSP
> >pages? In that case, shdnt I need to know in advance what
> node
> >description should open which JSP page?
> >
> >Sorry, if my questions seems silly, but I'm trying to
> understand the
> >tree as it would form a major navigation menu for my web
> page.
> >
> >
> >-----Original Message-----
> >From: Sean Schofield [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, August 04, 2005 11:56 AM
> >To: MyFaces Discussion; [EMAIL PROTECTED]
> >Subject: Re: Tree2 Implementation help
> >
> >
> >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.
> >>
> >
> >
> >
> >
> >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.
> Dennis Byrne
>

Reply via email to