[richfaces-issues] [JBoss JIRA] Created: (RF-6739) Context menu reappears when menu item is clicked

Nils ten Hoeve (JIRA) jira-events at lists.jboss.org
Thu Apr 9 10:28:23 EDT 2009


Context menu reappears when menu item is clicked
------------------------------------------------

                 Key: RF-6739
                 URL: https://jira.jboss.org/jira/browse/RF-6739
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.3.0
         Environment: Win XP, Java 6, Apache Tomcat 6, IE7
            Reporter: Nils ten Hoeve


I have a tree that shows a context menu that is triggered by the onclick event of a tree node. The context menu reappears on the location where a menu item is clicked (unwanted behavior). It works fine when using the oncontextmenu event. The problem is that I need a left-click to trigger the context menu.  

<rich:tree switchType="client" selectedClass="active" toggleOnClick="true">
	<rich:recursiveTreeNodesAdaptor roots="#{menu.rootNode}" var="node" nodes="#{node.children}">
		<rich:treeNode>
			<h:outputText value="#{node.class.simpleName}" />
			<rich:contextMenu event="onclick"  submitMode="ajax">
				<rich:menuItem value="Test" actionListener="#{menu.test}"></rich:menuItem>
			</rich:contextMenu>
		</rich:treeNode>
	</rich:recursiveTreeNodesAdaptor>
</rich:tree>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list