This content has been marked as final.
Show 4 replies
-
1. Re: How to partially update the rich:tree nodes?
bleathem Nov 18, 2013 8:50 PM (in response to amittikoo84)You'll have to file a feature request in our issue tracker for such functionality.
In the mean time, make sure you aren't executing any business logic (eg. database reads) in rendering the tree nodes, caching values in your managed beans to optimize performance.
-
2. Re: How to partially update the rich:tree nodes?
amittikoo84 Nov 19, 2013 2:16 PM (in response to bleathem)Hello Brian,
Thanks a lot lot the feedback. I will definitely do that. In the meanwhile I was able to jury rig my code to get the desired functionality. Here is what I had to do:
<a4j:commandLink rendered="#{node.expanded}" render="treeNode" execute="segmentTree" oncomplete="initializeTree();"> <h:graphicImage library="images" styleClass="collapsed" name="segmentation/collapse.png" /> <a4j:param assignTo="#{node.expanded}" value="false" /> <f:param name="#{treeNodeBinding.clientId}__NEW_NODE_TOGGLE_STATE" value="true" /> <f:param name="#{treeNodeBinding.clientId}__TRIGGER_NODE_AJAX_UPDATE" value="true" /> </a4j:commandLink>
The main parts of the code are the "f;params" and the execute="segmentTree"(id of my tree). Do you see any disadvantages or possible issues with this workaround?
-
3. Re: How to partially update the rich:tree nodes?
bleathem Nov 19, 2013 2:18 PM (in response to amittikoo84)Without seeing the code in context it's hard to say. If it's working for you, I'd say go for it!
-
4. Re: How to partially update the rich:tree nodes?
amittikoo84 Nov 20, 2013 4:40 PM (in response to amittikoo84)