-
1. Expand/Collapse tree node by clicking on treenode text
jonask Apr 21, 2011 3:00 AM (in response to nirvanbd)Im interested in this topic, too. I read alot about TreeStates and stuff, but thats all not working for RF4.
-
2. Expand/Collapse tree node by clicking on treenode text
ilya_shaikovsky Apr 21, 2011 3:18 AM (in response to jonask)in RF 4 use toggleNodeEvent on the rich:tree set to click. that attribute allow to define event on the nodes content which will toggle them. by default it's not set.
-
3. Expand/Collapse tree node by clicking on treenode text
jonask Apr 21, 2011 3:23 AM (in response to ilya_shaikovsky)thanks works great. and how can i now expand all (or some) nodes when lodaing the page for example?
-
4. Expand/Collapse tree node by clicking on treenode text
ilya_shaikovsky Apr 21, 2011 3:27 AM (in response to jonask)treeNode has expanded attribute which could be either set to true on the page or pointed to the bean to mange it from runtime as you need..
-
5. Re: Expand/Collapse tree node by clicking on treenode text
jonask Apr 21, 2011 3:33 AM (in response to ilya_shaikovsky)my nodes are still all closed from the begin when adding expanded="true" :
<rich:tree toggleNodeEvent="click" id="tree" nodeType="#{node.type}" var="node" value="#{treeBean.rootNodes}" toggleType="client" selectionType="ajax" selectionChangeListener="#{treeBean.selectionChanged}"> <rich:treeNode expanded="true" type="member"> <h:outputText value="#{node.name}" />||<h:outputText value="#{node.alias}" /> </rich:treeNode> </rich:tree>
-
6. Re: Expand/Collapse tree node by clicking on treenode text
ilya_shaikovsky Apr 21, 2011 4:13 AM (in response to jonask)doh... looks like an issue.. I will fill it.. and in order to make it working change "true" to "#{true}"
-
7. Expand/Collapse tree node by clicking on treenode text
jonask Apr 21, 2011 4:25 AM (in response to ilya_shaikovsky)okay thanks im looking forward to https://issues.jboss.org/browse/RF-10701
-
8. Expand/Collapse tree node by clicking on treenode text
nirvanbd Apr 22, 2011 12:25 AM (in response to ilya_shaikovsky)Hey IIya,
That was very simple. Thank you very much for your help.
regards,
Nirvan.
-
9. Re: Expand/Collapse tree node by clicking on treenode text
noh5017 Jul 26, 2011 1:12 PM (in response to ilya_shaikovsky)I loaded data and populated my tree. I am able to access the nodes and access their data and have it do somethings that I need it to do.
But the real problem is, I can't get nodeSelectionListener to work. It doesn't get fired. But, when I do a simple test outside of the portal environment, it works.
In a simple example -
When I take the tree example from the live demo, and put it into my portal environment, everything else works except the nodeselectlister.
When I put it by itself, it work just fine.
Please, any help or lead would be greatful.
Thank you in advance.