2 Replies Latest reply on Dec 21, 2007 3:25 AM by Ales Dostal

    contextMenu and componentControl with param

    Ales Dostal Newbie

      Hi,
      I have this code:

      <-- contextMenu -->
      <rich:contextMenu id="a" attached="false">
      <rich:menuItem value="Edit" action="#{bean.actionEdit}"
      rendered="#{s:hasRole('admin')}">
      <f:param value="{id}" name="id" />
      </rich:menuItem>
      </rich:contextMenu>
      <!-- /contextMenu -->

      <-- table -->
      <rich:componentControl event="onRowClick" for="a" operation="show">
      <f:param value="#{r.id}" name="id" />
      </rich:componentControl>
      <-- /table -->

      This code is run OK!
      But....
      When I try call method as: #{bean.actionEdit(id)} ... id is empty :(
      Can I any call the method with parametr?

      I use Opera browser, where cannot use "right click" for contextMenu :((
      I cannot use ... rich:contextMenu id="a" attached="true" ...