p:treeTable not display parent node in GUI
<p>primeface treenode is not printing properly in Xhtml, child value displayed in parent node. but in console printing value displayed correctly.</p>

<p>Here are my code :</p>

<p>Backing Bean :</p>

<pre><code>public TreeNode getTreeData()
{

    lstTestProcessByRelease = testProcessBo.findAllTestProcessByReleaseGroupBy(getTestSuite(), getReleaseName());
    List&lt;TestProcess&gt; lstTestScenario = new ArrayList&lt;TestProcess&gt;();
    root1 = new DefaultTreeNode("Root",null);
    for(TestProcess tp : lstTestProcessByRelease)
    {

        TreeNode parent = new DefaultTreeNode(new TestProcess(tp.getTestScenarioName(), tp.getTestCaseName(), tp.getTestCaseExecNo(), tp.getTestScenarioExecNo()),root1);
        System.out.println("============"+ tp.getTestScenarioName() +"=================");
        System.out.println("Scenario Name (ROWKEY) :"+ parent.getRowKey());
            lstTestScenario = testProcessBo.findAllTestCasesByTestScenarioName(tp.getTestSuite(), tp.getReleaseName(), tp.getTestScenarioName());
            TreeNode child =null;
            for(TestProcess tc : lstTestScenario)
            {

                child = new DefaultTreeNode(new TestProcess(tc.getTestScenarioName(), tc.getTestCaseName(), tc.getTestCaseExecNo(), tc.getTestScenarioExecNo()),parent);
                System.out.println("TestCase (ROWKEY) :"+ child.getRowKey());
                System.out.println("Scenario Name :" + tc.getTestScenarioName());
                System.out.println("TestCases Name : " + tc.getTestCaseName());
                System.out.println("   TestScenario ExecNo :" + tc.getTestScenarioExecNo());
                System.out.println("      TestCase ExecNo :" + tc.getTestCaseExecNo());
            }
            System.out.println("");
            System.out.println("");
    }


    return root1;
}
</code></pre>

<p>Xhtml file :</p>

<p>[<img src="https://i.stack.imgur.com/MoWOS.png" alt="Output image">]</p>

<pre><code>&lt;p:treeTable value="#{testProcessBean.root1}" id="TestProcessID"
                        var="tree1" editable="true" editMode="cell"&gt;


                        &lt;p:column headerText="Test Scenario and Test Cases"&gt;
                            &lt;h:outputText value="#{tree1.testCaseName}" /&gt;
                        &lt;/p:column&gt;
                        &lt;p:column headerText="Execution Order"&gt;
                            &lt;h:outputText value="#{tree1.testCaseExecNo}" /&gt;
                        &lt;/p:column&gt;

                    &lt;/p:treeTable&gt;
</code></pre>

<p>Output is displayed in attached image.
In output, Login-1 is child for LOGIN. when i print in console, I am getting correctly however when i print in xthml it display parent value from child itself.</p>

<p>Here is the console output:</p>

<pre><code>============LOGIN=================
Scenario Name (ROWKEY) :0
TestCase (ROWKEY) :0_0
Scenario Name :LOGIN
TestCases Name : Login-1
   TestScenario ExecNo :1
      TestCase ExecNo :1
TestCase (ROWKEY) :0_1
Scenario Name :LOGIN
TestCases Name : Login-2
   TestScenario ExecNo :1
      TestCase ExecNo :2
TestCase (ROWKEY) :0_2
Scenario Name :LOGIN
TestCases Name : Login-3
   TestScenario ExecNo :1
      TestCase ExecNo :3
TestCase (ROWKEY) :0_3
Scenario Name :LOGIN
TestCases Name : DocumentUpload
   TestScenario ExecNo :1
      TestCase ExecNo :4
</code></pre>