2 Replies Latest reply on Feb 14, 2012 1:39 AM by Gaurav Pandey

    dynamic contextMenu in richfaces 4.2.0.CR1

    Gaurav Pandey Newbie

      current showcase of 4.2.0.CR1 has common menu for alll nodes:-

      <rich:contextMenu target="tree" mode="ajax">
                  <rich:menuItem label="View" render="popupContent" oncomplete="#{rich:component('popup')}.show()" mode="ajax" icon="/images/icons/open.gif"/>


      is it possible to assign a menuitem to a  a treenode instead of tree; i.e. target="treeNode"? , then it'll possible to show different right click menu options for different node.

      Also how can we disbale right click for a leaf node; rendered="!isLeaf" ? where should we use rendered? for rich:contextMenu Or for rich:menuItem Or for both?