title: ajax listener in composite component stops working when I add clientBehavior
body: <p>I have this composite component and it works perfectly. </p>
  
  <pre><code>&lt;cc:interface&gt;
      &lt;cc:attribute name="listenerController" ... /&gt;
  &lt;/cc:interface&gt;
  
  &lt;cc:implementation&gt;
      &lt;p:outputPanel id="selectOnePanel"&gt;
          &lt;p:selectOneMenu id="selectOne" ... &gt;
              &lt;f:selectItems ... /&gt;
              &lt;p:ajax event="change" listener="#{listenerController.listenerMethod()}" ... /&gt;
          &lt;/p:selectOneMenu&gt;
      &lt;/p:outputPanel&gt;
  &lt;/cc:implementation&gt;
  </code></pre>
  
  <p>But I wanted to listen to the "change" event from outside this component. So I used the "cc:clientBehavior" in the cc:interface. For the purpose of testing I added a couple of "console.out"s.</p>
  
  <p>First I updated the composite component:</p>
  
  <pre><code>&lt;cc:interface&gt;
       &lt;cc:attribute name="listenerController" ... /&gt;
       &lt;cc::clientBehavior name="change" targets="#{cc.clientId}":selectOne" event="change" /&gt;
  &lt;/cc:interface&gt;
  
  &lt;cc:implementation&gt;
      &lt;p:outputPanel id="selectOnePanel"&gt;
          &lt;p:selectOneMenu id="selectOne" ... &gt;
              &lt;f:selectItems ... /&gt;
              &lt;p:ajax event="change" listener="#{listenerController.listenerMethod()} 
                      onstart="console.log(1);" oncomplete="console.log(2); ... /&gt;
          &lt;/p:selectOneMenu&gt;
      &lt;/p:outputPanel&gt;
  &lt;/cc:implementation&gt;
  </code></pre>
  
  <p>And how I would use it:</p>
  
  <pre><code>&lt;xx:compostiteComponentName&gt;
      &lt;p:ajax event="change" onstart="console.log(3)"; oncomplete="console.log(4);" /&gt;
  &lt;/xx:compostiteComponentName&gt;
  </code></pre>
  
  <p>The problem is that the listener in the composite component stops working. All the "onstart"s and "oncomplete"s seem to work, since the console output is:</p>
  
  <pre><code>1
  2
  3
  4
  </code></pre>
  
  <p>Why does the listener stop working?</p>