2 Replies Latest reply on Feb 8, 2008 9:57 AM by Benjamin Outram

    actionListener method is ignored on rich:panelMenuItem

    Benjamin Outram Newbie


      When a rich:panelMenuItem item is clicked the actionListener method is not executed if the parent rich:panelMenu 'expandSingle' attribute is set to true.

      For example

      <rich:panel id="menuPanel" styleClass="panel_menu">
       <rich:panelMenu id="menu" expandSingle="true">
       <rich:panelMenuGroup label="Group1">
       <rich:panelMenuItem label="Item" actionListener="#{menu.itemClicked}"/>
       <rich:panelMenuGroup label="Group2"/>
      public class MenuBean
       public void itemClicked(ActionEvent event)
       System.out.println("menu item clicked");

      I have also tried binding the rich:panelMenu to a HtmlPanelMenu in MenuBean and setting expandSingle programatically. I get the same result.

      If the value of expandSingle single is set to false then the method is executed normally and the message 'menu item clicked' is printed.

      I have tried richfaces 3.1.3.GA and 3.1.4.GA.
      JSF RI 1.2_04-b20-p03.
      Application server is Glassfish-v2.