-
1. Re: Expanding rich:tree till to the particular tree node based name criteria entered outside of the tree in rich faces 4.3.5
askkuber Nov 18, 2015 1:56 AM (in response to askkuber)what is this information? I didn't understand.
-
2. Re: Expanding rich:tree till to the particular tree node based name criteria entered outside of the tree in rich faces 4.3.5
michpetrov Nov 18, 2015 11:01 AM (in response to askkuber)Just on client side? You'll need to find the node and then expand its parents.
-
3. Re: Expanding rich:tree till to the particular tree node based name criteria entered outside of the tree in rich faces 4.3.5
askkuber Nov 19, 2015 1:55 AM (in response to michpetrov)Hi,
let me explain my requirement. I have 6 tabs where each tab is having rich:tree where I am using treemodeladaptor and treemodalrecursiveadaptors serving for hierarchy of equipment. Now I have separate tab where I search with name or id then all the results will display in tabular form. each row can part of equipment tree at any level. My requirement is when I select row from search table, then I will call rest query which returns object with hierarchy of selected row. I should navigate to the equipment tab and expand the equipment tree until the selected row match.Is there any way using this parent object, I will expand the tree until it match the text or Id of the searched result by traversing through the tree programmatically.
Thanks in advance.
-
4. Re: Expanding rich:tree till to the particular tree node based name criteria entered outside of the tree in rich faces 4.3.5
michpetrov Nov 19, 2015 4:19 AM (in response to askkuber)You are trying to make it more difficult than it needs to be (solving the problem, not your implementation). Do you need to expand the tree on the client side or do you need to do something on the server side and rerender the expanded tree? Also depends on what toggleType you're using.
-
5. Re: Expanding rich:tree till to the particular tree node based name criteria entered outside of the tree in rich faces 4.3.5
askkuber Nov 19, 2015 5:14 AM (in response to michpetrov)I need it on the server side. But the decision on expanding tree level will be done from out side of the tree.
-
6. Re: Expanding rich:tree till to the particular tree node based name criteria entered outside of the tree in rich faces 4.3.5
askkuber Nov 24, 2015 2:00 AM (in response to askkuber)expanded="#{true}" is not working for the <rich:treenode> under <rich:treeModelRecursiveAdaptor> tag. expanded attribute value, I will set dynamically, based on that it should expand from parent to till that node. But its not working.
-
7. Re: Expanding rich:tree till to the particular tree node based name criteria entered outside of the tree in rich faces 4.3.5
askkuber Dec 3, 2015 9:26 AM (in response to askkuber)Now I am able to expand with expand attribute in jsf page. But I need to set this at server side.
I have property UITree treeBinding;
So I need to traverse through this treeBinding and set expand attribute when the node text matches with some string in backing bean method.
Could somebody provide code snippet to achieve this.
Thanks in advance
-
8. Re: Expanding rich:tree till to the particular tree node based name criteria entered outside of the tree in rich faces 4.3.5
askkuber Dec 3, 2015 11:07 AM (in response to askkuber)Can somebody respond on this?