title: Reset p:tree selected values
body: <p>I need to reset the selected values  in a p:tree. I create a reset button in the form where i put my p:tree element. That button put the selected values of the tree as null values. In the backing bean the values are clear when i press this button. But in the interface even when I refresh the page the old selected value still marked. Here is my code:</p>
  
  <p>p:tree</p>
  
  <pre><code>&lt;p:tree id="treeClassifier" 
          value="#{navBarController.rootClassifier}" 
          var="node"          
          selectionMode="checkbox" 
          selection="#{navBarController.selectedClassifiers}" 
          style="height: 100px;width: 280px; margin-bottom: 0px; overflow: auto"&gt;
        &lt;p:treeNode expandedIcon="ui-icon-folder-open" 
                    collapsedIcon="ui-icon-folder-collapsed"&gt;
           &lt;h:outputText value="#{node.description}(#{node.code})"/&gt; 
        &lt;/p:treeNode&gt; 
  &lt;/p:tree&gt;
  </code></pre>
  
  <p>Create the tree:</p>
  
  <pre><code>public TreeNode initTree(GenericTree&lt;Classifier&gt; tree) {
          GenericTreeNode&lt;Classifier&gt; root = tree.getRoot();
          TreeNode rootJSF = new DefaultTreeNode("root", null);
          for (GenericTreeNode&lt;Classifier&gt; gnt : root.getChildren()) {
              if (gnt.getData().getId() != -1) {
                  TreeNode childTree = new DefaultTreeNode(gnt.getData(), rootJSF);
                  //rootJSF.getChildren().add(childTree);
                  //f_aux(gnt, rootJSF);
                  addChildsToTree(gnt, childTree);
              }
          }
          return rootJSF;
      }
  
      public void addChildsToTree(GenericTreeNode&lt;Classifier&gt; parent, TreeNode parentJSF) {
          for (GenericTreeNode&lt;Classifier&gt; child : parent.getChildren()) {
              TreeNode newNode = new DefaultTreeNode(child.getData(), parentJSF);
              //parentJSF.getChildren().add(newNode);
              addChildsToTree(child, newNode);
          }
      }
  </code></pre>
  
  <p>The reset function:</p>
  
  <pre><code>public void reset() {
         ....
         this.selectedClassifiers = null;
  }
  </code></pre>
  
  <p>What is wrong in my code?</p>