6 Replies Latest reply on Jan 29, 2008 2:41 AM by schinni

    Help - Facing problem with RichFaces Menu

    schinni

      Hi,

      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".

      The JSP code i used for the menu is as follows:

      <rich:toolBar styleClass="menu">
       <rich:dropDownMenu value="Home" event="onmouseover">
       <rich:menuItem action="#{App_Frame.Page_action_Main}" submitMode="server" value="Main Page" id="MainPage" />
       </rich:dropDownMenu>
      </rich:toolBar>


      I also created the relevant function in the backing bean:
      public String Page_action_Main() {
       return "Menu_Main_Page";
      }


      The JSP code i used for the context menu is as follows:

      <rich:contextMenu event="oncontextmenu" attached="true" submitMode="none">
       <rich:menuItem value="Zoom In" />
       <rich:menuItem value="Zoom Out" />
      </rich:contextMenu>



      Help with this issue would be greatly appreciated. I am new to JSF and have performed the steps listed out in the RichFaces Developer Guide Chapter 3 to integrate RichFaces with JSF.

      Thank you.
      cs