2 Replies Latest reply on Jan 25, 2010 4:39 AM by Abhishek N

    stand alone rich:menuItem

    Abhishek N Newbie

      Hi,

       

      Rich faces user guide says rich:menuItem can be used without dropDownMenu or menuGroup.

      But I am getting this error.

      [25 Jan 2010 11:19:46] [ERROR] USER:  TRAN:  org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/xx].[FacesServlet]: Servlet.service() for servlet FacesServlet threw exception]
      javax.faces.FacesException: Parent menu for menu group (id=j_id25:j_id27) has not been found.
          at org.richfaces.renderkit.html.MenuItemRendererDelegate.getParentMenu(MenuItemRendererDelegate.java:167)
          at org.richfaces.renderkit.html.MenuItemRendererDelegate.initializeStyles(MenuItemRendererDelegate.java:35)
          at org.richfaces.renderkit.html.MenuGroupRendererBase.initializeStyleClasses(MenuGroupRendererBase.java:62)
          at org.richfaces.renderkit.html.MenuGroupRenderer.doEncodeEnd(MenuGroupRenderer.java:194)
          at org.richfaces.renderkit.html.MenuGroupRenderer.doEncodeEnd(MenuGroupRenderer.java:302)
          at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
          at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
          at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)

       

       

      How To Use menu Item as stand alone (I dont want a popUp).

      Can you help me.

       

      Thanks.