title: Using primefaces p:tabView, the refresh of the tabs using p:ajax doesn't work fine. The first time refresh but the next times doesn't refresh
body: <p>I have a page with a tabView, with 3 tabs, each tab has a tree. The tree of the third tab (DEVICES CATEGORY/TYPE), depends on what I select in the tree of the second tab (CERTIFICATIONS SYSTEM/PROGRAM). I generate the tree of the third tab dynamically when tab changes, using the event "tabChange"</p>
  
  <pre><code>&lt;p:ajax event="tabChange" listener="#{profileMB.onTabChange}" /&gt;
  </code></pre>
  
  <p>When I select an element of the tree of the second tab and I change to the third tab, <strong>for the first time, it works OK</strong>, but when I <strong>return to the second tab</strong> and I <strong>mark differents nodes</strong> of the tree and I change to the third tab, <strong>the third tabs doesn't refresh</strong>.</p>
  
  <p>The methods of the event it works OK, and generate the tree well.</p>
  
  <pre><code>public void onTabChange(TabChangeEvent event) {
      log.debug(Constants.BEGIN);    
      if(selectedNodesCS!=null &amp;&amp; selectedNodesCS.length&gt;0){        
        rootDeviceCategory =
            getDeviceCategoryService().createRootStructure(rootDeviceCategory, null,listCertSystem,listCertProgram);
      }
    }
  </code></pre>
  
  <p>I tried using the update in the ajax event "tabChange":</p>
  
  <pre><code>&lt;p:ajax event="tabChange" listener="#{profileMB.onTabChange}" update=":formManagerProfile:tabsProfile:tabDC" /&gt;
  </code></pre>
  
  <p>but the console says: </p>
  
  <p><strong><em>Can not update component "org.primefaces.component.tabview.Tab" with id "formManagerProfile:tabsProfile:tabDC" without a attached renderer</em></strong></p>
  
  <p>This is the code of my XHTML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"&gt;
  
  
      &lt;h:form id="formManagerProfile" style="margin: auto auto"&gt;
          &lt;h:panelGroup id="displayManager"&gt;
  
              &lt;p:panelGrid id="panelUp" style="text-align: left;"
                  styleClass="panelGridWithoutBorder"&gt;
                  &lt;p:row&gt;
                      &lt;p:column&gt;
                          &lt;h:outputText value="#{msg['profile.name']}: " for="profileName" /&gt;
                      &lt;/p:column&gt;
                      &lt;p:column&gt;
                          &lt;h:inputText id="profileName" value="#{profileMB.profileName}"
                              maxlength="64" styleClass="width-100x100" /&gt;
                      &lt;/p:column&gt;
                  &lt;/p:row&gt;
                  &lt;p:row&gt;
                      &lt;p:column&gt;
                          &lt;h:outputText value="#{msg['profile.profileGroup']}: "
                              for="profileGroup" /&gt;
                      &lt;/p:column&gt;
                      &lt;p:column&gt;
                          &lt;p:selectOneMenu id="profileGroup"
                              value="#{profileMB.profileGroupSelected}"
                              converter="#{selectOneMenuConverterSelf}"&gt;
                              &lt;f:selectItem itemLabel="" itemValue="#{null}" /&gt;
                              &lt;f:selectItems id="pgSelectedItem"
                                  value="#{profileMB.listProfileGroups}" var="pgItem"
                                  itemValue="#{pgItem}" itemLabel="#{pgItem.name}" /&gt;
                          &lt;/p:selectOneMenu&gt;
                      &lt;/p:column&gt;
                      &lt;p:column&gt;
                          &lt;p:commandButton id="editProfileGroup"
                              icon="#{msg['icon.update']}"
                              value="#{msg['button.text.updateProfileGroup']}"
                              title="#{msg['button.text.updateProfileGroup']}"
                              actionListener="#{profileMB.managementProfileGroup}"
                              update=":managerProfileGroupForm :growl"
                              oncomplete="PF('profileGroupManagerDialogWidget').initPosition();PF('profileGroupManagerDialogWidget').show()" /&gt;
                      &lt;/p:column&gt;
                  &lt;/p:row&gt;
              &lt;/p:panelGrid&gt;
              &lt;p:panel styleClass="text_align_left"&gt;
                  &lt;p:commandButton id="saveButtonUp" icon="#{msg['icon.save']}"
                      value="#{msg['button.text.save']}"
                      title="#{msg['button.text.save']}"
                      action="#{profileMB.saveProfile}" update=":growl" /&gt;
                  &lt;p:commandButton id="backButtonUp" icon="#{msg['icon.back']}"
                      value="#{msg['button.text.back']}"
                      title="#{msg['button.text.back']}" action="#{profileMB.backAction}"
                      ajax="false" /&gt;
              &lt;/p:panel&gt;
  
  
          &lt;/h:panelGroup&gt;
          &lt;h:panelGroup&gt;
              &lt;p:tabView id="tabsProfile" dynamic="true"&gt;
                  &lt;p:ajax event="tabChange" listener="#{profileMB.onTabChange}" /&gt;
                  &lt;p:tab id="tabMenu" title="MENUS"&gt;
                      &lt;p:tree value="#{profileMB.rootAction}" var="elementAction"
                          selectionMode="checkbox" selection="#{profileMB.selectedNodes}"&gt;
                          &lt;p:treeNode&gt;
                              &lt;h:outputText value="#{elementAction}" /&gt;
                          &lt;/p:treeNode&gt;
                      &lt;/p:tree&gt;
  
                  &lt;/p:tab&gt;
                  &lt;p:tab id="tabCS" title="CERTIFICATIONS SYSTEM/PROGRAM"&gt;
                      &lt;p:tree id="TreeCS" value="#{profileMB.rootCertSystem}"
                          var="elementCS" selectionMode="checkbox"
                          selection="#{profileMB.selectedNodesCS}"&gt;
                          &lt;!--                        &lt;p:ajax event="select" listener="#{profileMB.onClickTreeCS}"   /&gt; --&gt;
                          &lt;!--                        &lt;p:ajax event="unselect" listener="#{profileMB.onClickUnSelectTreeCS}"   /&gt; --&gt;
                          &lt;p:ajax async="true" delay="none" immediate="true"
                              process="TreeCS" event="select" /&gt;
                          &lt;p:ajax async="true" delay="none" immediate="true"
                              process="TreeCS" event="unselect" /&gt;
                          &lt;p:treeNode&gt;
                              &lt;h:outputText value="#{elementCS}" /&gt;
                          &lt;/p:treeNode&gt;
                      &lt;/p:tree&gt;
                  &lt;/p:tab&gt;
                  &lt;p:tab id="tabDC" title="DEVICES CATEGORY/TYPE"&gt;
                      &lt;p:tree id="TreeDC" value="#{profileMB.rootDeviceCategory}"
                          var="elementDC" selectionMode="checkbox"
                          selection="#{profileMB.selectedNodesDevCat}"&gt;
                          &lt;p:ajax event="select" listener="#{profileMB.onClickTreeDC}" /&gt;
                          &lt;p:ajax event="unselect"
                              listener="#{profileMB.onClickUnSelectTreeDC}" /&gt;
                          &lt;p:treeNode&gt;
                              &lt;h:outputText value="#{elementDC}" /&gt;
                          &lt;/p:treeNode&gt;
                      &lt;/p:tree&gt;
                  &lt;/p:tab&gt;
              &lt;/p:tabView&gt;
          &lt;/h:panelGroup&gt;
      &lt;/h:form&gt;
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>I'm using primefaces v5.1, JSF v2.2.8, spring v3.2.5, hibernate v4.2.7 and java v1.7 </p>