title: Why tree ajax events in primefaces don't work when bean scope is request?
body: <p>My xhtml code is:</p>
  
  <pre><code>&lt;p:tree id="attachTree" style="width: 100%;" value="#{detailsTaskBacking.attachRootNode}" selectionMode="single" selection="#{detailsTaskBacking.selectedNode}" var="node"&gt;
  &lt;p:ajax event="select" async="false" update=":roteiroAttachTab:formAttachForm:mediaPdf" listener="#{detailsTaskBacking.onNodeSelect}"/&gt;
  &lt;p:treeNode expandedIcon="ui-icon-folder-open" collapsedIcon="ui-icon-folder-collapsed"&gt;
  &lt;h:outputText value="#{text['tasksbacking.tabAttach']}"/&gt;
   &lt;/p:treeNode&gt;
  &lt;p:treeNode type="file" expandedIcon="ui-icon-document" collapsedIcon="ui-icon-document"&gt;
   &lt;h:outputText value="#{node.name}"/&gt;
  &lt;/p:treeNode&gt;
  &lt;/p:tree&gt;
  </code></pre>
  
  <p>And my bean code is:</p>
  
  <pre><code>@request
  ...
  public void onNodeSelect(NodeSelectEvent event) {...}
  </code></pre>
  
  <p>When run the project in debug mode selectedNode for argument event is null, why?</p>
  
  <p>Why in primefaces tree ajax events not work when bean scope is request? I tested this with one bean in view scope and the selectedNode is not null, why?</p>