using context menu for tree node

UI Components for JSF
Post Reply
rubi
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:treeNode>
        </p:tree>
          <p:contextMenu for="a1" >
               <p:menuitem value="Previous"/>
          </p:contextMenu>
Glassfish V3.1.1,Mojarra 2.1.2, PrimeFaces-3.0RC1

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

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

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 25 guests