1 Reply Latest reply on Jan 11, 2013 8:28 AM by mabu2

    rich:tree selectionChangeListener doesn't fire in rich:popupPanel

    mabu2 Newbie

      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