Disable rich:contextMenu when clicking on links.

Solution Unverified - Updated -

Issue

  • I have a rich:contextMenu that gets shown via "onclick". Within the area  covered by the context menu there is an s:link. I do not want the  contextMenu to display when I click the link. How do I disable showing the rich:contextMenu when clicking on links like <s:link/> ?

Environment

  • JBoss Enterprise Application Platform (EAP) 5.1.0
  • Richfaces
  • Current code:

    <rich:contextMenu  attached="false" submitMode="ajax" hideDelay="300" id="hwmenu">
        <rich:menuItem value="Number 1" />
        <rich:menuItem  value="Number 2" />
        <rich:menuItem value="Number 3" />
    </rich:contextMenu>
    
    <rich:dataTable  value="#{devicesList.resultSet" var="_device" ><br /><br /><br />    <rich:column><br />        <f:facet name="header">Hostname</f:facet><br />        <s:link id="sl2" includePageParams="false" view="/Device.xhtml">View Detail</s:link><br />    </rich:column><br /><br /><br /><br /><br /><br />    <rich:componentControl  id="cc1" event="onRowClick" for="hwmenu" operation="show"><br />        <f:param name="name" value="#{_device}" />
        </rich:componentControl>
    </rich:dataTable>
    

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content