I found a myfaces post with the same exact question but no answer(search
for tree and popup). I am hoping someone might know this time.
I have a tree, and inside that tree I have a popup for all the folders.
When I first bring up the tree, in html, there is one folder displayed
called "Main" while in the model there are many folders already.
Without expanding "Main", I use the popup and click on addFolder in the
popup. The binded action method is then called 8 times(once for each
folder in the model). Why is this? I expected a separate popup
component for each node by declaring the popup inside the folder facet
of the tree.
I also added an actionlistener to see which node it was being callled
on, and sure enough, it gets called once for each node. I am really
confused why JSF would allow 8 action methods to be called.....which one
would actually determine the navigation....luckily in my example they
return "success" for every one.
thanks for any help on this, I have been struggling with tree for a few
days now.
thanks,
dean