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

Richfaces Tree Does Not Display TreeNode

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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">
<h:outputText 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 ]
bacon. tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic