If you use the tree2 component, it is up to you to render the node's text. You can have something like:

<t:tree2 ...>
<f:facet name="mynode">
<t:commandLink target="otherframe" action="" />
</f:facet>

If you were using facelets, you could avoid frames as well, and just put the tree in the template of each page. The tree's state would be preserved across each page of the template. That way you don't need to worry about problems associated with frames. Also, you would be able to update the tree model and have the changes show up all the time (not needed to refresh the tree's frame)

-Andrew

On 5/24/06, sarma <[EMAIL PROTECTED]> wrote:

hi,
1)

  i have a frame with two parts
<FRAMESET cols="50%,50%">
                <FRAME src="">                <FRAME src=""
</FRAMESET>
frame 1 is treecontroller.jsp file is there
and tree in treecontroller.jsp is like this
tree
-----
a
    first
    second

while i click a node of  that treecontroller i.e if i click a node first it
show the first.jsp file in frame 2
and i click a node  second it have to show second.jsp file in frame2
how i have to write a code for that in myfaces tree control

2)
the nodes are to added dynamically when i click on the root node
means  when  i added a record to the database three
while i click  a  root node which  is in  collapsed  state it have to show
latest database  results as like this

+root

when i click root

-root
  first
  second
  third

will have to come

and  when i click on third it has to go to some page means i have to add
command link to that node dynamically
means when i click third it has to go third.jsp and displayed in frame2

please help me because i have to implement this

if any body does this please send me mail to [EMAIL PROTECTED]

with regards
shannui







--
View this message in context: http://www.nabble.com/how+to+put+commandlink+to+my+tree+node-t1679306.html#a4553899
Sent from the MyFaces - Users forum at Nabble.com.


Reply via email to