wood burning stoves 2.0*
The moose likes JSF and the fly likes rich:treeNode won't reRender with their tree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "rich:treeNode won Watch "rich:treeNode won New topic
Author

rich:treeNode won't reRender with their tree

Adam Cohen
Greenhorn

Joined: Dec 12, 2012
Posts: 1
I'm modifying someone else's code (initial development was farmed out to a company that's been bought out and they've already handed over maintenance to us). I'm trying to add a status icon to my tree's nodes but for whatever reason the tree doesn't want to display new information until I navigate away from the page and back.


I've tried binding balancedImg to a method in the backing bean but didn't have any better luck. My tree appears to get reRendered (the area of the screen is definitely redrawn) but none of the node data ever seems to get updated (including addition and deletion of nodes). The only exception to this is that through a selectListener I can update the name (but status changes to the selected node can propagate through the tree and parent:child is many:many so the entire tree may be in need of an update if modifying a leaf node). I've added a button to rebuild the tree which again redraws the area on the screen, but the nodes still display any of the changes.

I've tried replacing icon and iconLeaf to see whether I'd have better results with that, but they won't reflect the changes either.

I've attached a small .png to illustrate what it looks like.

Any help would be most appreciated.



[example.png]

 
Don't get me started about those stupid light bulbs.
 
subject: rich:treeNode won't reRender with their tree
 
Similar Threads
Dynamically deciding either to show or hide modalPanel
need nodes on rich:tree to not be auto selected, only selected when clicked on.
having clicking on a treeNode from rich:tree change ui:define content (need help)
<rich:tree> Problem with queueNodeExpand() to expand a Path to a leaf
richface tree example