title: <p:ajax> listener is never called
body: <p>I am new to primefaces. I am migrating from primefaces2.2 to primefaces3.1.1 because i have to include the new features of primefaces3.1.1 in application.</p>
  
  <p>There was a dragndrop functionality in application. It is working fine with primefaces2.2, but when i made changes according to the specifications of primefaces3.1.1. The dragndrop   functionality is not working.</p>
  
  <p>Actually the scenario is like </p>
  
  <p>I have a datatable where i am getting values from database and displaying. There is a treetable.</p>
  
  <p>The datatable row is to be dragged and dropped on the treetable area. While doing so i have written the listener but it is never called.</p>
  
  <p>Here i am providing the code</p>
  
  <p>workflow.xhtml</p>
  
  <pre><code> &lt;p:fieldset  id="workflowtabs" legend="Drop here" rendered="#{workflowStep2Bean.childCount gt 0}"&gt;
     &lt;p:outputPanel id="dropArea"&gt;
  &lt;p:treeTable id="testtable" value="#{workflowStep2Bean.root}"  var="selected" rendered="#{not empty workflowStep2Bean.root}" &gt;
                                                              &lt;p:column rendered="#{selected.type eq 'Folder'}"&gt;
                                                                  &lt;p:commandButton icon="ui-icon ui-icon-folder-open" disabled="true"/&gt;
                                                              &lt;/p:column&gt;                                                                
                                                              &lt;p:column rendered="#{selected.type eq 'Folder'}" &gt;
                                                                  &lt;h:inputText value="#{selected.name}" /&gt;                                                                        
                                                              &lt;/p:column&gt;                                                                  
                                                          &lt;/p:treeTable&gt;
                                                      &lt;/p:outputPanel&gt;      
                                                  &lt;/p:fieldset&gt;  
  &lt;p:fieldset  id="testfields" legend="#{msg.tests}" rendered="#{workflowStep2Bean.childCount gt 0}"&gt;
                                                      &lt;p:dataTable id="teststable" value="#{workflowStep2Bean.tests}" var="testList"  &gt;
                                                          &lt;p:column style="height: 20px" headerText="Drag"&gt;
                                                              &lt;h:outputText id="dragIcon" styleClass="ui-icon ui-icon-arrow-4"/&gt;
                                                              &lt;p:draggable for="dragIcon" revert="true" scope="#{dragIcon.position}" stack=".ui-icon ui-icon-arrow-4"/&gt;                                                                
                                                          &lt;/p:column&gt;                                                           
                                                          &lt;p:column headerText="Name"&gt;
                                                              &lt;h:outputText value="#{testList.name}"&gt;&lt;/h:outputText&gt;
                                                          &lt;/p:column&gt;                                                                            
                                                      &lt;/p:dataTable&gt;                                                                                                                                                   
                                                  &lt;/p:fieldset&gt;
  &lt;p:droppable for="workflowtabs" tolerance="touch" activeStyleClass="ui-state-highlight" datasource="teststable" onDrop="handleDrop"&gt;  
                                              &lt;p:ajax  listener="#{workflowStep2Bean.onTestDrop}" update="dropArea teststable" /&gt;  
                                      &lt;/p:droppable&gt;  
  </code></pre>
  
  <p>and here is my workflowStep2Bean.java</p>
  
  <pre><code>public void onTestDrop(DragDropEvent ddEvent) {
      if (getTabs().size() &gt; 0) {
          TreeNode tab = getTabs().get(getTabs().size() - 1);
          Test t = (Test) ddEvent.getData();
          tests.remove(t);
          ((Tab) tab.getData()).getTests().add(t);
          TreeNode tabC = new DefaultTreeNode(t, tab);
      }
  }
  </code></pre>
  
  <p>Please tell me where i am doing wrong. Thank in advance</p>
  
  <p>I am using primefaces 3.1.1, Mojorra 2.1.3, Glassfish 3.1.1, JSF2.0</p>