my dog learned polymorphism
The moose likes JSF and the fly likes Tree Implementation using Trinidad tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Tree Implementation using Trinidad tag" Watch "Tree Implementation using Trinidad tag" New topic

Tree Implementation using Trinidad tag

Saurabh Chandra

Joined: Feb 28, 2008
Posts: 2
Stating below is the problem which I am facing while implementing tree.

I am able to display the data which is passed as collection( for example an array list[one dimensional array] the data gets arranged up vertically in a single line ) but the graphical symbols or representation of tree is not appearing like the "+" and " -" symbol as well as the vertical lines that comes in the left-side of elements of tree is also not appearing .

However when i am passing an array of objects in that array(i.e., 2d array) to represent parent child relationship. the code is not working.

I am hereby sending you the code with which i have tried the code.

<tr:tree var="foo" value="#{tree.newList}">
<f:facet name="nodeStamp">
<trutputText value="#{foo.newName}" >

newList ----->this is the name of the array list ( data can be seen if new list is a 1 dimensional array list of object but when we are passing a 2 dimensional array list ie an array list which holds an array of object to represent parent child relationship) the code doesnt WORKS!!!

newName--------> this is one of the property of the object stored in that array.

nodeStamp-----------> it is the facet name to stamp each element.
rajani varma
Ranch Hand

Joined: Dec 21, 2006
Posts: 30
Hello Saurabh,
I have no idea about <tr:tree>. Sorry..... :-(

I agree. Here's the link:
subject: Tree Implementation using Trinidad tag
It's not a secret anymore!