p:treeTable not sending on sub-node
<p>I use PrimeFaces with a <code>p:treeTable</code>:</p>

<pre><code>root
  Area
    Equipment 1
    ...
    Equipment n
  Area 2
    Equipment 1
    ...
    Equipment n
</code></pre>

<pre class="lang-java prettyprint-override"><code>public TreeNode getRoot() {
    DefaultTreeNode root = new DefaultTreeNode("Root", null);
    for (Area area : areas) {
        TreeNode areaNode = new DefaultTreeNode("area", new AreaTreeNode(area), root);
        root.getChildren().add(areaNode);
        for (Equipment e : equipments) {
            TreeNode eNode = new DefaultTreeNode("equipment", new EquipmentTreeNode(e), areaNode);
            areaNode.getChildren().add(eNode);
        }
    }
    return root;
}
</code></pre>

<p>Where <code>AreaTreeNode</code> and <code>EquipmentTreeNode</code> both extend from <code>MipTreeNode</code> which is simply a serializable bean.</p>

<p>In my .xhtml file, I define:</p>

<pre><code>&lt;p:treeTable value="#{equipmentsView.root}" var="node" selectionMode="single"&gt;
    &lt;p:column headerText="Name"&gt;
        &lt;h:outputText value="#{node.name}" /&gt;
    &lt;/p:column&gt;
    &lt;p:column&gt;
        &lt;p:commandLink value="edit" actionListener="#{equipmentsView.edit(node)}" /&gt;
    &lt;/p:column&gt;
&lt;/p:treeTable&gt;
</code></pre>

<p>So, when I click the commandLink I want to call the edit method with the current node:</p>

<pre><code>public void edit(final MipTreeNode n) {
    System.out.println(n);
}
</code></pre>

<p>My problem is that the above method is only called for <code>AreaTreeNode</code> and not for <code>EquipmentTreeNode</code>. Did I miss anything?</p>