This discussion is archived
8 Replies Latest reply: Jan 29, 2013 3:10 AM by RajaSekharReddy.M RSS

af:tree With Multiple Child Table

939413 Explorer
Currently Being Moderated
Hi,

I have a requirement where i have to show a af:tree with child records from two different view Iterators, I created one tree but facing a issue. It shows the name of the Child view iterators and then the record inside it.
Like :-
---> DummyRecord1 *(Record from Parent Iterator)*
------------>viewIterator1 *(Name of the First Child Iterator)*
-------------------->DummyRecord2 *(Record from First Child Iterator)*
------------>viewIterator2 *(Name of the Sec Child Iterator)*
-------------------->DummyRecord2 *(Record from Sec Child Iterator)*

But i don't want to show the Name of the Child iterators in the tree.I want the tree something like:-

---> DummyRecord1 *(Record from Parent Iterator)*
-------------------->DummyRecord2*(Record from First Child Iterator)*
-------------------->DummyRecord3 *(Record from Sec Child Iterator)*
My .Jspx code:-

<af:tree value="#{bindings.*someViewIterator*.treeModel}"
var="node"
selectionListener="#{bindings.*someViewIterator*.treeModel.makeCurrent}"
rowSelection="single" id="t1">
<f:facet name="nodeStamp">
<af:outputText value="#{node}" id="ot1"/>
</f:facet>
</af:tree>
My Page Def code:-
><variableIterator id="variables"/>
> <iterator Binds="*someView*" RangeSize="25"
> DataControl="AppModuleDataControl"
id="*someViewIterator*"/>
</executables>
<bindings>
<tree IterBinding="*someViewIterator*"
id="*someView1*">
<nodeDefinition DefName="*someView*"
Name="*someView12*">
<AttrNames>
<Item Value="nodeValue"/>
</AttrNames>
<Accessors>
<Item Value="viewIterator2"/>
<Item Value="viewIterator3"/>
</Accessors>
</nodeDefinition>
<nodeDefinition DefName="viewIterator2"
Name="viewIterator123">
<AttrNames>
<Item Value="nodeValue"/>
</AttrNames>
</nodeDefinition>
<nodeDefinition DefName="viewIterator3"
Name="viewIterator345">
<AttrNames>
<Item Value="nodeValue"/>
</AttrNames>
</nodeDefinition>
</tree>
</bindings>
I am using JDev  11.1.1.6.0
Why is Tree component creating an extra level showing the iterator name, is there any way to remove that level and show the tree with the actual records only...
Thanks in advance..

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points