title: How to open new page on node click
body: <p>I have a simple example of <code>p:tree</code>. </p>
  
  <pre><code>&lt;p:tree id="tree" styleClass="treeskin" value="#{TreeViewController.root}" var="node" dynamic="true" animate="true"
          selectionMode="single" selection="#{TreeViewController.selectedNode}" highlight="true"&gt;
  
      &lt;p:ajax event="select" listener="#{TreeViewController.onNodeSelect}" update=":treeform:outputComponent"/&gt;
      &lt;p:ajax event="expand" listener="#{TreeViewController.onNodeExpand}" /&gt;
      &lt;p:ajax event="collapse" listener="#{TreeViewController.onNodeCollapse}" /&gt;
  
      &lt;p:treeNode styleClass="treeskin"&gt;
          &lt;h:outputText value="#{node}"/&gt;
      &lt;/p:treeNode&gt;
  &lt;/p:tree&gt;
  </code></pre>
  
  <p>I'm interested is it possible somehow when I click on a node to open a new page. I found that using <code>onNodeClick</code> I can open a new page using JavaScript. But if it's possible I want to send hidden value which I will use as a key later.
  What are the possible solutions?</p>