I am using RichFaces 3.1.3 with JSF (Netbeans 6 visual web java server faces). I am unable to create a menu properly. When i do a mouseover on a dropdownmenu, a javascript error is raised in the browser - "Object doesnt support this property or method". When i do a mouseover on the menuitem within the dropdownmenu, i get another javascript error - "Undefined is null or not an object".

I tried creating a context menu. That too gives me a javascript error - "Object doesnt support this property or method".