title: JSF 2 + f:ajax + listener not called
body: <p>sample page.
      
      
      
      </p>
  
  <pre><code>&lt;tr:outputText value="#{my.name}" id="name"/&gt;
  &lt;tr:commandButton text="Click" action="#{my.doaction}" id="test1"&gt;
  &lt;f:ajax event="click" listener="#{my.myajax}" render="name"&gt;&lt;/f:ajax&gt;
  &lt;/tr:commandButton&gt;
  &lt;/tr:form&gt;
  &lt;/ui:define&gt;
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>Managed bean...scope request</p>
  
  <pre><code>@PostConstruct
  public void init(){
      _name = "default";
  }
  
  public void doaction(){
      System.out.println("In doaction");
  }
  
  public void myajax(AjaxBehaviorEvent ae) throws javax.faces.event.AbortProcessingException{
      _name = "Ajax";
  }
  
  public void myajax() throws javax.faces.event.AbortProcessingException{
      _name = "Ajax";
  }
  </code></pre>
  
  <p>i am using trinidad buttons. jsf 2. my listener is not being called.  none of the myajax(AjaxBehaviorEvent ae)
   myajax() 
  are called. however my doaction method is being called.
  what am i missing. ?</p>
  
  <p>please help. </p>
  
  <p>note: my facesconfig is below. does specifying 2.2 and using trinidad 2.0 and myfaces 2.0 create this problem?</p>
  
  <pre><code>&lt;faces-config
  xmlns="http://xmlns.jcp.org/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd"
  version="2.2"&gt;
  &lt;application&gt;
  &lt;default-render-kit-id&gt;org.apache.myfaces.trinidad.core&lt;/default-render-kit-id&gt;
  &lt;/application&gt;
  &lt;/faces-config&gt;
  </code></pre>