Hi,
I placed exactly the same rich:tree (except the id) twice in the same xhtml. One directly in the form, the other in a rich:popupPanel in the same form. Both refer to the same managed bean to the same method.
Both trees are rendered perfectly, toggeling the nodes works well. But only the tree placed directly in the form calls the method referenced by selectionChangeListener. When I select a node in the tree in the popupPanel nothing happens.
<h:form>
...
<rich:tree value="#{myTree.nodes}" var="node" toggleType="ajax" id="tree3" selectionType="ajax" rowKeyConverter="org.richfaces.IntegerSequenceRowKeyConverter"
selectionChangeListener="#{myBean.handleTreeSelection}">
<h:outputText value="#{node.name}"/>
</rich:tree>
...
<rich:popupModal>
<rich:tree value="#{myTree.nodes}" var="node" toggleType="ajax" id="tree1" selectionType="ajax" rowKeyConverter="org.richfaces.IntegerSequenceRowKeyConverter"
selectionChangeListener="#{myBean.handleTreeSelection}">
<h:outputText value="#{node.name}"/>
</rich:tree>
</rich:popupModal>
...
</h:form>
Does anybody know why?
The tree I need for my application is the one in the popupPanel, the other tree I only placed to debug ...
Thanks
Mabu2
Problem obviously known since RF4.0.0 Final: https://issues.jboss.org/browse/RF-11138
The solution of Ilya Shaikovsky works fine.