-
1. How can I properly add nodes to a tree in a backing bean
dcracauer Apr 3, 2007 5:20 PM (in response to dcracauer)After changing the reRender settings and ensuring that the tree is set to be reRendered, I'm still stuck. I wrote a DataVisitor that simply prints out the rowKey,
and called tree.walk(..) with that visitor immediately after I insert a node into the tree. The node that I inserted does not appear in the list. If I insert another node, the previously added node now appears, but the new node does not.
All I am doing is modifying my data structure (objects that implement TreeNode). Do I need to do something more? -
2. Re: Branch of tree not refreshing correctly after ajax reque
sergeysmirnov Apr 3, 2007 5:40 PM (in response to dcracauer)do you use richfaces 3.0.0 or the latest 3.0.1 SNAPSHOT? The same question for Ajax4jsf.
-
3. Re: Branch of tree not refreshing correctly after ajax reque
dcracauer Apr 3, 2007 5:57 PM (in response to dcracauer)I am using a daily snapshot of 3.0.1 from last friday (March 30th)
-
4. Re: Branch of tree not refreshing correctly after ajax reque
dcracauer Apr 4, 2007 10:24 AM (in response to dcracauer)I upgraded to the latest snapshots of both RichFaces 3.01 and Ajax4JSF 1.1.1 and the problem still exists.
-
5. Re: Branch of tree not refreshing correctly after ajax reque
nbelaevski Apr 4, 2007 2:44 PM (in response to dcracauer)Hello!
Can you please provide sample code to reproduce the problem at ours site? Thank you in advance! -
6. Re: Branch of tree not refreshing correctly after ajax reque
dcracauer Apr 4, 2007 5:03 PM (in response to dcracauer)I can, where and how should I post the code? can I email it to you directly?
-
7. Re: Branch of tree not refreshing correctly after ajax reque
sergeysmirnov Apr 4, 2007 5:59 PM (in response to dcracauer)You can create an issue in Jira and attach the code there:
http://jira.jboss.com/jira/browse/RF -
9. Re: Branch of tree not refreshing correctly after ajax reque
nbelaevski Apr 6, 2007 1:15 PM (in response to dcracauer)David,
thank you for reporting the problem! The issue has been fixed in trunk. Please note that I've restored drag/drop value to reference row key of the node in trunk as it referenced previously in 3.0.0 release. Here is the new code to handle keys:UITree tree; UIComponent component = drag.getComponent(); if (component instanceof UITreeNode) { UITreeNode treeNode = (UITreeNode) component; tree = treeNode.getUITree(); } else { tree = (UITree) component; } if(type.equalsIgnoreCase("predicateMove")){ AbstractNode dragNode = (AbstractNode) tree.getRowData(drag.getDragValue()); CompoundNode dropNode = (CompoundNode) tree.getRowData(drag.getDropValue());