Duplicate nodes in ADF Tree
Duplicate Entries in ADF Tree
Hi,
Iam facing issue with ADF Tree representation. Getting content from DB. I've a table with self reference. Iam able to provide check box for each node. Following is the usecase of issue
a->b->c->1.xml
a->b1->c1->2.xml
a->b2->c2->3.xml
Issue 1: It's dispaling 3 a's at the first level. But it should display a once within that b,b1,b2 as sub levels.
Even though it's showing 'a' three times, if we click on second & third 'a', first 'a' is effecting. Please suggest to filter duplicate entries while displaing. Following is code snippet of jspx.
<af:tree value="#{bindings.ParentMDTopic1.treeModel}" var="node"
selectionListener="#{bindings.ParentMDTopic1.treeModel.makeCurrent}"
rowSelection="multiple" id="t1"
partialTriggers="#{pageFlowScope.mBean.checkboxFlag.addValueChangeListener}">
<f:facet name="nodeStamp">
<af:group id="g1">
<!-- <af:selectBooleanCheckbox
label="Label 1" id="sbc2"
valueChangeListener="#{pageFlowScope.mBean.checkBoxChange}"/> -->
<af:selectBooleanCheckbox label="Label 1" id="sbc2"
value="#{node.checkboxFlag}"
autoSubmit="true"
valueChangeListener="#{pageFlowScope.mBean.checkBoxChange}"/>
<af:outputText value="#{node}" id="ot1"/>
</af:group>
</f:facet>
</af:tree>
Issue 2: Select/Deselect functionality. If we click on any node, the child nodes & sub levels till leaf nodes should be in select state. Similarly for deselect functionality.
In order to acheve functionality, Created two transient attributes of boolean & string type. I tired to debug the ManagedBean, seems to be it's traversing to sublevels & changing the transient attribute. But while display it's not effeting. Please suggest a hint on this. It could be great if you provide some useful pointers to refer.
Thanks in advance,
Samba.