Right-Click Context Menu on Map

Discussion created by jjmiller1980 on Mar 10, 2011
I checked on the forums and didn�??t see an answer to what I�??m trying to do, so hoping someone will know.

I have an ArgGIS map using the JavaScript API.  It creates a route on the map using several dots connected by lines.  We would like the ability to create a right-click context menu.  We�??re creating the project using RichFaces, and of course we also have access to the dojo framework.  Both of these frameworks provide a menu like the one I�??m looking for.

Dijit.Menu: http://dojotoolkit.org/reference-guide/dijit/Menu.html
(Programmatic example and Declaritive markup example)

Richfaces context menu: http://liferay.exadel.com/web/guest
(Click �??Rich menu�?? on the left, then �??Context Menu�??)

The problem is that both of these solutions require the item you right-click to have an ID attribute, which the map graphics don�??t.  Is there a way that anyone knows to integrate one of these context menus into my map?