Page 1 of 1

using context menu for tree node

Posted: 01 Nov 2010, 12:13
by rubi
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.

Code: Select all

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

Re: using context menu for tree node

Posted: 01 Nov 2010, 13:36
by cagatay.civici
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.