1 Reply Latest reply on Apr 23, 2015 12:39 PM by Michal Petrov

    context menu on tree

    qwerty979 Newbie

      I have a problem with rich: tree. When using toggle Type = "ajax" in the new node is not added to the context menu. My code is as follows.

      <rich:tree id="tree" var="node" value="#{controller.nodes}" toggleType="ajax" selectionType="ajax"

                          selectionChangeListener="#{controller.selectionChanged}" toggleListener="#controller.nodeToggle}" >


                              <h:outputText value="#{node.value}" />



                      <rich:contextMenu mode="ajax" target="tree" >

                          <rich:menuItem label="Add"

                              mode="ajax" action="#{controller.add}"/>