• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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 ]
 
bacon. tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic