Elisha Naicker

Greenhorn
+ Follow
since Nov 26, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Elisha Naicker

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 ]
14 years ago
JSF