I have the same problem too.. the node is added to the Tree but image is missing. My requirement is to enable the user to add TreeNodes dynamically by clicking ADD button and the TreeNodes are added at subsequent levels but how to get the page image besides each added TreeNode.
how can the tree component in JSF page Fragment be made dynamic depending on the data from the database? I could not be able to execute the page fragment which contains Tree component in it and my requirement is to change it dynamically. I followed the example in this url below
i could help if you provide more information but, according to your first post i could suggest you to put the code of jsf page's render method in a public method called, for example myUpdateMethod(Param p) that you will place in page fragment. Then in jsf page's render method put :
thank you for your reply. I got a new problem with JSF Tree. The Tree worked well until i fixed images for each level of Tree (for each TreeNode at different levels). Now i try to delete the TreeNode (with image) after deleting the TreeNode I am rebuilding the Tree - but the problem is the node which is deleted is still appearing at the same place and when i click it obviously jsf is searching for the deleted node and ends up with null pointer. The question i don't want the deleted Node to be displayed (Tree must dynamically update according the user operations). This problem won't appear when i restart my application server - does the old instance is held at somewhere and the new changes are not updated?? i dont know how to solve it?
This is my favorite show. And this is my favorite tiny ad: