• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Richfaces Tree Does Not Display TreeNode

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Im a newbie to Richfaces and I've been trying to display a tree of just folders. When I create a folder it does work but the tree only shows the reference to the actual object and not the Object attribute that I want to be displayed under a TreeNode tag.

Her is a snippet of my jsp:

<rich:tree style="width:100%" switchType="client" stateAdvisor="#{folderTreeStateAdvisor}" id="xtree" nodeSelectListener={pc_list.processSelection}">
<rich:recursiveTreeNodesAdaptor roots="#{folderBean.nodes}" var="item" nodes="#{item.nodes}">
<rich:treeNode type="folderName" id="nameNode" iconLeaf="/img/folder-16.png" icon="/img/folder-16.png">
<h:outputText value="Name: #{item.name}" />
</rich:treeNode>
</rich:recursiveTreeNodesAdaptor>
</rich:tree>

Do the nodes 'nodes="#{item.nodes}"' have to be specifically TreeNode objects? Is that where my problem is? Or does it have something to do with the 'type' attribute within the treeNode tag??

Please help! I've been going crazy trying to figure this out
[ November 26, 2008: Message edited by: Elisha Naicker ]
 
Crusading Chameleon likes the size of this ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic