2 Replies Latest reply on Oct 19, 2009 1:16 PM by mike82

    Modal panel shown from context menu

    mike82
      hi,

        I am trying to display modal panel after selecting item from context menu. I've used componentControl in order to show panel, but nothing happens after selecting item... Here's part of code I tried:

      <rich:contextMenu event="oncontextmenu" submitMode="ajax">
        <rich:menuItem value="Add comment">
          <rich:componentControl for="eventCommentPanel" operation="show" event="onclick"/> <!-- also tried "onRowClick" -->
        </rich:menuItem>
      </rich:contextMenu>

      <rich:modalPanel id="eventCommentPanel">
        <h:outputText value="Add comment"/>
      </rich:modalPanel>