title: p:tree ajax events are updating other components
body: <p>I have a problem with ajax events of the <code>p:tree</code> component</p>
  
  <p>Here's the xhtml code:</p>
  
  <pre><code>&lt;form id="form1"&gt;
  
  &lt;!-- Other components --&gt;
  
  &lt;p:panel id="panel1" binding="#{panel1}"
      header="..." toggleable="true" toggleSpeed="500"
      collapsed="false" dynamic="true"
      rendered="#{service.checkMethod(...)}"&gt;
      &lt;div class="column"&gt;
          &lt;p:tree id="treeId" value="#{tree.root}"
              var="node" selectionMode="single"
              rendered="#{tree != null}"
              selection="#{flowScope.selectedNode}"
              widgetVar="treeId"
              process="tree"&gt;
  
              &lt;p:ajax event="select" process="@this"
                  update="@this :#{anotherPanel.clientId} :#{anotherPanel2.clientId}"
                  listener="#{service.onNodeSelect}" oncomplete="setSelectedNode()" /&gt;
  
              &lt;p:ajax event="expand" process="@this" listener="#{service.onNodeExpand}" /&gt;
              &lt;p:ajax event="collapse" process="@this" listener="#{service.onNodeCollapse}" /&gt;
  
              &lt;p:treeNode&gt;
                  &lt;h:outputLabel value="#{node.attribute}" /&gt;
              &lt;/p:treeNode&gt;
          &lt;/p:tree&gt;
          &lt;h:outputLabel
              value="Empty"
              rendered="#{tree.isEmpty()}" /&gt;
      &lt;/div&gt;
  &lt;/p:panel&gt;
  
  &lt;!-- Other components --&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The panel1 rendered attribute has a method which will create a new tree every time is updated, but somehow all the ajax events on the tree are calling that method. Even the expand and collapse update, which doesn't have the update defined, is doing that.</p>
  
  <p>I already tried putting <code>global="false", immediate="true"</code>, using different type of updates and process, on all the ajax events, or putting other panels between the tree and the panel, but it has the same effect. I searched all my files with Eclipse, to make sure that this method isn't called elsewhere, but it's only used here.</p>
  
  <p>Is there a way to prevent the tree ajax events from re-rendering the above panel?</p>