File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSF
Bookmark "rich:treeNode won Watch "rich:treeNode won New topic

rich:treeNode won't reRender with their tree

Adam Cohen

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.


I agree. Here's the link:
subject: rich:treeNode won't reRender with their tree
It's not a secret anymore!