This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Tree using Trinidad" Watch "Tree using Trinidad" New topic
Author

Tree using Trinidad

Guru Rao
Greenhorn

Joined: Apr 24, 2009
Posts: 11
Hi,

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">
<tr:column>
<f:facet name="header">
<tr: outputText value="Employee Name"/>
</f:facet>
<tr: outputText value="#{node.ename}"/>
</tr:column>
</f:facet>
<tr:column>
<f:facet name="header">
<tr: outputText value="Employee Id"/>
</f:facet>
<tr: outputText value="#{node.empid}"/>
</tr:column>
<tr:column>
<f:facet name="header">
<tr: outputText value="Department"/>
</f:facet>
<tr: outputText value="#{node.dname}"/>
</tr:column>
</tr:treeTable>

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.

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