-
1. Re: Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
naveenm Mar 22, 2011 2:28 PM (in response to naveenm)Here is the source code to reproduce this issue:
-
2. Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
naveenm Mar 30, 2011 3:25 PM (in response to naveenm)Can someone please help with this issue?
-
3. Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
nbelaevski Mar 30, 2011 6:05 PM (in response to naveenm)Hi Naveen,
Try removing duplicate declarations for FaceletViewHandler and TreeTestAction and check.
Also I have a question: do you see tree first and then it disappears after Ajax re-render or it doesn't show up initialiy?
-
4. Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
naveenm Mar 31, 2011 12:11 PM (in response to nbelaevski)Hi Nick,
Thanks for your response.
The tree never gets redender. I wanted to render the tree basing on a selection from the drop down through ajax. When I debug the request comes to my bean and returns the tree node but it never renders the tree, so I put a wait status just to see if the response is coming back and the status bar goes way, but it doesn't seems the response is getting back and the status bar remains there.
BTW I removed the duplicate declarations for FaceletViewHandler and TreeTestAction but the issue still persists.
Please help.
Thanks,
Naveen
-
5. Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
nbelaevski Mar 31, 2011 12:15 PM (in response to naveenm)Are you using WAR or EAR?
-
6. Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
naveenm Mar 31, 2011 1:21 PM (in response to nbelaevski)I tried by deploying as a WAR and also as an EAR and it's the same issue.
-
7. Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
nbelaevski Mar 31, 2011 1:42 PM (in response to naveenm)After pasting the code into Eclipse I've found the problem - you are not initializing 'rootNode' field.
-
8. Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
naveenm Mar 31, 2011 1:54 PM (in response to nbelaevski)I tried to initialize rootNode but it didn't help.
Here is the I tried by placing in TreeTestAction.java
private TreeNode<String> rootNode = new TreeNodeImpl<String>();
-
9. Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
nbelaevski Mar 31, 2011 2:19 PM (in response to naveenm)Please post the updated code.
-
10. Re: Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
naveenm Mar 31, 2011 2:40 PM (in response to nbelaevski)Hi Nick, I'm not able to copy paste the on to the richfaces forums, not sure why it's not allowing me to do that.
But here are the changes I made:
Change 1:
TreeTestAction.java
-----------------------------------------
1. I removed the @Name annotation
2. Replace private TreeNode rootNode; with private TreeNode rootNode = new TreeNodeImpl();
Change 2:
faces-config.xml
----------------------------------------
1. Removed FaceletViewHandler declaration. (As pointed earlier it's still there in the web.xml only removed from faces-config.xml)
The rest of the code is the same as I posted at this forum: http://seamframework.org/Community/DynamicLoadOfRichTreeFailsWithSeam221FinalVersionAndRichfaces333FinalVersion
Thanks,
Naveen
-
11. Re: Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
nbelaevski Mar 31, 2011 2:42 PM (in response to naveenm)Naveen,
But it's not initialized then! Here is the code as it should be:
public TreeNode<String> getTreeHierarchies() {
rootNode = new TreeNodeImpl<String>();
TreeNodeImpl<String> subNode1 = new TreeNodeImpl<String>();
subNode1.setData("Test1");
rootNode.addChild("Test Child1", subNode1);
TreeNodeImpl<String> subNode2 = new TreeNodeImpl<String>();
subNode2.setData("Test2");
rootNode.addChild("Test Child2", subNode2);
return rootNode;
}
-
12. Re: Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
naveenm Mar 31, 2011 2:58 PM (in response to nbelaevski)Hi Nick,
I tried that too, it's still the same issue. I noticed one thing that when I invoke the page, it's calling the getTreeHierarchies() method on the TreeTestAction, but I am not really trying to invoke that method until I select a value in the drop down, and when I select a value in the drop down it again invokes the getTreeHierarchies() method, do you think this could be causing anything?Thanks,
Naveen
-
13. Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
nbelaevski Mar 31, 2011 3:02 PM (in response to naveenm)By your code I see that dropdown value and tree value are not connected so I don't think that's the problem.
I've copied your code to working Seam project and it didn't work due to wrong initialization code in the bean; after I did the change it worked properly.
So I cannot reproduce the problem and need to ask you for small example project that will reproduce the issue at my side.
-
14. Dynamic load of rich tree fails with RichFaces 3.3.3.Final version and Seam 2.2.1.Final version
naveenm Mar 31, 2011 3:11 PM (in response to nbelaevski)Hi Nick,
Can you please add the below action in the MyXhtml for the a4j:support tag under rich:comboBox id="secondSelection"
action="#{treeTestAction.getTreeHierarchies()}"
Now on selection of a value from the drop down should show the tree.
Thanks,
Naveen