Board index JavaServer Faces General using context menu for tree node

using context menu for tree node

Components, Ajax Framework, Utilities and More.


Posts: 160
Is there a way to link a context menu to a tree node specifically rather than the whole tree.
I tried the following but didn't work.

 <p:tree >
            <p:treeNode id="a1" >
                <h:outputText value="#{node.displayString}"/>
            </p:treeNode>
        </p:tree>
          <p:contextMenu for="a1" >
               <p:menuitem value="Previous"/>
          </p:contextMenu>
Glassfish V3.1.1,Mojarra 2.1.2, PrimeFaces-3.0RC1


Posts: 15080
Location: Cybertron

Unfortunately not at the moment, we'll provide built-in integration for contextMenu in 2.3 both for datatable, tree and treeTable as it had to work differently with data components.
PrimeFaces Lead


Return to General