• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tree using Trinidad

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic