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

    context menu on tree

    qwerty979

      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}" >

                          <rich:treeNode>

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

                          </rich:treeNode>

                      </rich:tree>

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

                          <rich:menuItem label="Add"

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

                      </rich:contextMenu>

       

      Thanks

       

      Sergio