File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Tree using Trinidad Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Tree using Trinidad" Watch "Tree using Trinidad" New topic

Tree using Trinidad

Guru Rao

Joined: Apr 24, 2009
Posts: 11

I am a newbie on Apache trinidad and JSF. I am not very clear as to how to create a Tree hierarchy using trinidad.

From Apache Trinidad developer guide, I am able to get that, a Tree can be rendered on the browser using the following snippet

<tr:treeTable var="node" value="#{myBean.orgChart.root}">
<f:facet name="nodeStamp">
<f:facet name="header">
<tr: outputText value="Employee Name"/>
<tr: outputText value="#{node.ename}"/>
<f:facet name="header">
<tr: outputText value="Employee Id"/>
<tr: outputText value="#{node.empid}"/>
<f:facet name="header">
<tr: outputText value="Department"/>
<tr: outputText value="#{node.dname}"/>

Also I am not sure how to create a Managed bean for the same, which is referred as "myBean.orgChart.root".

Could someone please let me know how to proceed.

I agree. Here's the link:
subject: Tree using Trinidad
Similar Threads
Delete/edit a row in JSF
Problem with Trinidad Nested Table (depth 3)
ValueChangeEvent fires for every datatable changed value, cannot reset.
JSF - SelectManyListBox doesnt populate on valeChangeevent
Datatable column header issue