4 Replies Latest reply on Dec 3, 2008 10:50 AM by Anton Lisovenko

    Rich:contextMenu and rich:dataTable - how to disable menu fo

    Anton Lisovenko Newbie

      Hello everyone. I have a datatable and rich:contextMenu element, which is poped up when someone clicks on table row (componentControl with "onRowClick" event). In the table I have several links, which work but the menu appears, when I click these links. How can I disable context menu when I click links?

      Actually I wanted to show context menu on right button click - then there would be no problems with links, but as far as I looked through the forum, this is impossible. May there are some ways to enable context menu popup on RIGHT click?

      Here are some snapshots of componentcontrol and context menu:

      <rich:componentControl event="onRowClick" for="menu"
       disableDefault="false" operation="show">
       <f:param value="#{selectedCustomer.id}" name="customerId" />

      <rich:contextMenu attached="false" id="menu" submitMode="ajax" hideDelay="0"
       <rich:menuItem ajaxSingle="true" value="#{bundle.goToOrders}"
       action="orders" icon="/images/orders.png">
       <a4j:actionparam name="ord"
       assignTo="#{orderFilterBean.filterCustomer}" value="{customerId}" />

      And another problem I've just found - when using context menu with componentControl for any component - THE WHOLE page is disabled for native right-click context menu of browser!

      Thanks in advance