using context menu for tree node

Components, Ajax Framework, Utilities and More.
Post Reply
Posts: 160
Joined: 24 May 2010, 16:53

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.

Code: Select all

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

User avatar
Posts: 17714
Joined: 05 Jan 2009, 00:21
Location: Cybertron

01 Nov 2010, 13:36

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.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot], and 18 guests