title: primefaces p:menuitem actionlistener not called
body: <p>I'm usign Mojarra 2.1.23 and Primefaces 3.5. I'm trying to make this code work, but for some reason I can't get the listener to be invoked.</p>
  
  <pre><code>&lt;h:form id="menu" &gt;
      &lt;p:growl id="messages" autoUpdate="true" showDetail="true" /&gt;
      &lt;p:panelMenu&gt;
          &lt;p:submenu label="Ajax Menuitems"&gt;
              &lt;p:menuitem value="#{MenuController.test}"
                  actionListener="#{MenuController.save}" ajax="true" 
                  update="messages" /&gt;
              &lt;p:menuitem value="Update" actionListener="#{MenuController.save}"
                  update="messages" /&gt;
          &lt;/p:submenu&gt;
      &lt;/p:panelMenu&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p><code>MenuController</code> is a session scoped bean managed by Spring 3 and even its properties are properly displayed on the same xhtml (button shows the text "Save").</p>
  
  <p>The <code>MenuController</code> class is as follows:</p>
  
  <pre><code>public class MenuController() implements Serializable{
  
      public static Logger log;
      public String test="Save";
  
      public MenuController() {
          log = LoggerFactory.getLogger(this.getClass());
          log.debug("Hello MenuController.");
      }
  
      public void save(ActionEvent event) {  
          addMessage("Data saved");  
          log.debug(" saving");
      }
  
      public void addMessage(String summary) {  
          FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO,
              summary,  null);  
          FacesContext.getCurrentInstance().addMessage(null, message);  
      }
      //getters and setters...
  }
  </code></pre>
  
  <p>I'm also using facelets, the following is Layout.xhtml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml" 
  xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core" 
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:p="http://primefaces.org/ui"&gt;
  
  &lt;h:head&gt;
  
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  
   &lt;title&gt;&lt;ui:insert name="title" /&gt;&lt;/title&gt;
   &lt;/h:head&gt;
   &lt;h:body&gt;
  &lt;div id="layout"&gt;       
  &lt;table&gt;
  &lt;tr&gt;
      &lt;td&gt;
      &lt;div id="menu"&gt;
          &lt;ui:include src="menu.xhtml"/&gt;
      &lt;/div&gt;
  
      &lt;/td&gt;
      &lt;td&gt;
      &lt;div id="content"&gt;
          &lt;ui:insert name="content"&gt;              
          &lt;/ui:insert&gt;
      &lt;/div&gt;
      &lt;/td&gt;   
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td&gt;
      &lt;div id="footer"&gt;
          &lt;p&gt;&lt;a href="#"&gt;© Footer&lt;/a&gt;&lt;/p&gt;
      &lt;/div&gt;
  &lt;/td&gt;
  &lt;/tr&gt;           
  &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>
  
  When I click the menu entry, the method is not being called.</p>