• Post Reply Bookmark Topic Watch Topic
  • New Topic

Richfaces Tree Does Not Display TreeNode  RSS feed

Elisha Naicker
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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">
<hutputText value="Name: #{item.name}" />

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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!