using context menu for tree node
Posted: 01 Nov 2010, 12:13
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.
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>