Disable rich:contextMenu when clicking on links.
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
