How can I add table in a "td" generated by primefaces?
<p>I am developing a dynamic table with primefaces 6.0 and JSF 2.2. I have a <code>TreeNode</code> of name <code>nodoRoot</code>. I am using <code>h:commandLink</code> in each <code>element</code> for add <code>children</code>, rendering the <code>p:treeNode</code>. Each <code>element</code> has the same <code>list</code> of <code>names</code> and I would like to show this information of the best way.</p>

<p>I have this:</p>

<p><a href="https://i.stack.imgur.com/43EJs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/43EJs.png" alt="enter image description here"></a></p>

<p>I would like:</p>

<p><a href="https://i.stack.imgur.com/D4OXT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D4OXT.png" alt="enter image description here"></a></p>

<p>Also, in the first image you can see (in red) the subtable has a header, I would like remove this.</p>

<p>This is my code:</p>

<pre><code>&lt;h:form id="myForm"&gt;
    &lt;h:panelGroup id="pgSystem"&gt;
        &lt;p:treeTable id="tablaSystem" class=" validate tablaNormal" style="border:none;" value="#{myBean.nodoRoot}" var="element"&gt;
            &lt;f:facet name="header"&gt;
                Sistema
            &lt;/f:facet&gt;
            &lt;p:column headerText="Nombre"&gt;
                &lt;h:outputText value="#{element.nombre}" /&gt;
                &lt;h:panelGroup id="agregarParteHija#{element.id}"&gt;
                    &lt;h:commandLink action="#{myBean.cargarNuevaParte(element)}"&gt;
                        &lt;f:ajax render="anotherForm" execute="agregarParteHija#{element.id}"/&gt;
                        &lt;i class="material-icons small"&gt;add&lt;/i&gt;
                    &lt;/h:commandLink&gt;
                &lt;/h:panelGroup&gt;
            &lt;/p:column&gt;
            &lt;p:column headerText="Names"&gt;
                &lt;p:dataTable value="#{question.names}" var="name"&gt;
                    &lt;p:column&gt;
                        &lt;h:outputText value="#{name}"/&gt;
                    &lt;/p:column&gt;
                &lt;/p:dataTable&gt;
            &lt;/p:column&gt;
        &lt;/p:treeTable&gt;
        &lt;br/&gt;
    &lt;/h:panelGroup&gt;
&lt;/h:form&gt;
</code></pre>

<p>Thank you!</p>