title: Primefaces <p:spinner> with <p:ajax ... listener>
body: <p>I have this code write in JSF2 - PrimeFaces 5.0 inside liferay 6.2 enviroment. And the listener of spinner is never fired. I also tryied to write <code>listener="#{managedBean.myListener()}" (see below for other way )</code> but this not worked. Can anyone help me?</p>
  
  <p><strong>view.xhtml</strong></p>
  
  <pre><code>&lt;f:view
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:c="http://java.sun.com/jsp/jstl/core"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:p="http://primefaces.org/ui"
  xmlns:ui="http://java.sun.com/jsf/facelets"&gt;
  &lt;h:head /&gt;
  &lt;h:form id="form"&gt;
  
  &lt;p:dataTable id="basicDT" 
               var="item" 
               value="#{managedBean.list}"
               &gt;
      &lt;p:column headerText="..." width="60%"&gt;
         ...
      &lt;/p:column&gt;
       ...
       &lt;p:column headerText="Column2" width="20%"&gt;
          &lt;p:spinner id="mySpinner"                
                     stepFactor="1"                                    
                     min="1"
                     value="#{item.value}" 
                    &gt;
                      &lt;p:ajax 
                              update=":form:spinnerValue" 
                              listener="#{managedBean.myListener}" /&gt;
          &lt;/p:spinner&gt;
      &lt;/p:column&gt;
      &lt;/p:dataTable&gt;
  
       &lt;p:outputPanel id="container"&gt;
            &lt;p:outputLabel id="spinnerValue" value="#{managedBean.labelValue}"/&gt;
      &lt;/p:outputPanel&gt;
  &lt;/h:form&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>This is the backing bean code: MyManagedBean.java</strong></p>
  
  <pre><code>@ManagedBean(name = "managedBean")
  @RequestScoped
  public class MyManagedBean extends GenericFacesPortlet {
  
      private double labelValue;
      private ArrayList&lt;MyObject&gt; list;
  
      public void myListener(){
          System.out.println("Listener fired!");
          ...
      }
  
  // getters &amp; setter
  }
  </code></pre>
  
  <p><strong>The problem is that the listener is never fired!</strong></p>