Check/Uncheck issue in ADF Tree

Hi,
I am using JDev 11.1.1.5.0. Iam trying to create a ADF Tree from Single VO object with self-reference with check box option. Iam able to create required ADF tree with checkbox option. Some how, unable to provide select-deselect functionality. I mean, if we select any node from the tree, all the sub nodes (till leaf node) should be in select state. Only one node in select state. Rest are not updating.
Tried to find in JDev forum. Could not able to find suitable topic.
Tried to implement the process given in the below URL..But no use !!!
http://andrejusb.blogspot.in/2011/12/adf-tree-how-to-autoselectdeselect.html
Created two transient attributes at VO level
checkboxConfirmed - Boolean..It's value will dependent on checkboxConfirmedStatus attribute, which is of type String.
Finally I am trying to provide technical details what I did so far. It might be lengthy :)
Following is the JSPX page code
===============================
<f:view>
<af:document id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:tree value="#{bindings.HierLinks1.treeModel}" var="node"
id="t1"
binding="#{pageFlowScope.mBean.treeProp}">
<f:facet name="nodeStamp">
<af:group id="g1">
<af:selectBooleanCheckbox
label="Label 1"
id="sbc1"
value="#{node.checkboxConfirmed}"
autoSubmit="true"
valueChangeListener="#{pageFlowScope.mBean.checkBoxChange}"
/>
<af:outputText value="#{node.ChildItemId}" id="ot1"/>
</af:group>
</f:facet>
</af:tree>
</af:form>
</af:document>
</f:view>
mBean code goes as follows:
public void checkBoxChange(ValueChangeEvent valueChangeEvent) {
System.out.println("Start checkBoxChange ");
System.out.println("OLD VALUE:"+valueChangeEvent.getOldValue());
System.out.println("NEW VALUE:"+valueChangeEvent.getNewValue());
DCIteratorBinding dcIb = ADFUtils.findIterator("HierLinks1Iterator");
HierLinksVORowImpl parent = (HierLinksVORowImpl)dcIb.getCurrentRow();
RowIterator ri = parent.getLeafHierLinks();
// parent.setAttribute("checkboxConfirmedStatus", "Y");
//RowSetIterator ri = parent.getRowSet();
Boolean check = (Boolean)valueChangeEvent.getNewValue();
while(ri.hasNext()){
LeafHierLinksVORowImpl leaf = (LeafHierLinksVORowImpl)ri.next();
System.out.println("Leaf ChildItemId"+leaf.getAttribute("ChildItemId"));
if (check == true) {
parent.setAttribute("checkboxConfirmedStatus", "Y");
leaf.setAttribute("checkboxConfirmedStatus", "Y");
else{
parent.setAttribute("checkboxConfirmedStatus", "Y");
leaf.setAttribute("checkboxConfirmedStatus", "N");
System.out.println("Leaf checkboxFlag 222"+leaf.getAttribute("checkboxConfirmed"));
     Tried to iterate the tree in another approach.
if( (Boolean)(valueChangeEvent.getOldValue()) != null) {
Boolean check = (Boolean) valueChangeEvent.getNewValue();
RichTree navTree = this.getTreeProp();
CollectionModel model = (CollectionModel)navTree.getValue();
JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)model.getWrappedData();
JUCtrlHierNodeBinding currentSelectedNode = (JUCtrlHierNodeBinding)navTree.getRowData();
List<JUCtrlHierNodeBinding> children = currentSelectedNode.getChildren();
if (children != null) {
for (JUCtrlHierNodeBinding _node : children) {
//Each child search returns node check status
Row nodeRow = _node.getRow();
if (nodeRow != null) {
//_node.setAttribute("checkboxConfirmedStatus",true);
String childId = (String)_node.getAttribute("ChildItemId");
System.out.println("CHILDID"+childId);
String[] atts = (String[]) _node.getAttributeNames();
System.out.println(Arrays.asList(atts));
System.out.println("CHECK"+check );
if(check == true){
_node.setAttribute("checkboxConfirmedStatus","Y");
else{
_node.setAttribute("checkboxConfirmedStatus","N");
System.out.println("Check Status"+_node.getAttribute("checkboxConfirmed") );
}else{
System.out.println("NODE ROW NULL");
} //End of for loop
else{
System.out.println("children NULL");
else{
System.out.println("OLD VALUE NULL");
//refreshSelectedRows();
System.out.println("End checkBoxChange ");
Iam suspecting, in JSPX page value="#{node.checkboxConfirmed}" is updating the checkbox status.
Could please help me on this?
Thanks in advance,
Samba.

Finally able to achieve by enabling 'Retain View Link Accessor Rowset'.
Thanks,
Samba

Similar Messages

  • View Criteria issue on ADF Tree

    Hi,
    JDev 11.1.1.5.0
    I am facing an issue while displaying ADF tree. I've created ParentVO & ChildVO from a single table with view criteria to filter the nodes.And then created two View links ParentToChild & ChildToChild.
    Added VOs & corresponding ViewLinks to ApplicationModule. When I tried to run application module, getting the results as per expectation (applying view criteria at each level).
    Now i've dragged the parent vo from data control on to jspx page. when I run the jspx page, it's displaying the tree structure.
    Issue is only view criteria is applying for top level nodes(parent VO) but not sub levels. If there is some issue with creation of View criteria then it should give same problem while executing AM. But while running AM, getting the expected results.
    It would be great if you provide any clue on this issue
    Thanks,
    Samba

    Thanks for your response.
    But my usecase is different. I need to filter the sublevels of the tree.
    Following is the sample
    Level1
         Level1.1
         Level1.2
         Level1.3
    Level2
         Level2.1
         Level2.2
         Level2.3
         Level2.4
    Level3
         Level3.1
         Level3.2
         Level3.3
    If I gave View Criteria as contains '2' then, Need to filter the nodes contains character 2. Able to filter first level nodes according VC. But VC is not applying for sub levels. Is there any way to set the VC in my case?

  • Issue With ADF Tree Expand/Collapse

    Hi All,
    I have a customer who is having issues using the af:tree component on a deployed application. When he tries to expand or collapse a node of the tree, the icon just blinks. This is occurring not only on our application, but also the Oracle ADF Rich Client Demo on http://jdevadf.oracle.com/adf-richclient-demo/faces/components/tree.jspx. He is using Internet Explorer v7.0.5730.13. As far as I can tell, our browser settings are identical, but I can use the tree without a problem.
    Any ideas as to what the problem could be?
    Thanks,
    Brad

    Unfortunately, Internet Explorer is the only browser that is authorized to run on his computer.
    Do you know of any specific IE settings that would cause the af:tree not to work?

  • Issue with ADF Tree Table

    Hi,
    I have the following requirement where i need to display a tree table. Here is how the initial implementation is:
    I have created the read only view for : ManagersVO > PoolsVO > MachinesVO. Where 'MachinesVO' is the destination view. And created view links between ManagersVO & PoolsVO using ManagerId and PoolsVO & MachinesVO using PoolId.
    And using this implementation, successfully created tree table on the UI. Now we got an enhancement for this:
    i.e., MachinesVO should return list of machines as per user logs in. i.e., we have 4 different roles. 'Super Admin', 'Sys Admin', 'App Admin', 'End User'. The default query for MachinesVO is for 'Super Admin'. The query for other user roles is different except the SELECT statement.
    The requirement is to dynamically change the query of MachinesVO based on user logs in and display the tree table accordingly. To implement the same i have tried using setQuery() operation on 'MachinesVO' which results with the following error:
    JBO-26016: InvalidOperException
    Cause: You cannot set customer query (calling setQuery()) on a view object if it is the detail view object in a master detail view link.
    Action: Do not call setQuery() if the view object is a detail.
    Can one suggest me a best solution to implement this.
    Thanks & Regards,
    Kiran

    Hi Navaneetha Krishnan,
    Here is how i implemented based on your comments. As i have tree table based 3 different VO's, created the following method at middle view(i.e., PoolsVO).
    1.Tree Model hierarchy
    ManagersVO > PoolsVO > MachinesVO
    I actually want to filter the data at Machines level. Hence wrote a method at PoolsVOImpls and exposed it in the PoolsVO client interface. Here is the code that i have placed in the PoolVOImpl
    public class PoolsVOImpl extends ViewObjectImpl implements PoolsVO{
         * This is the default constructor (do not remove).
        public PoolsVOImpl () {
      public void filterMachinesDataByUserRole(String userRole,String vzId){
        Row row = getCurrentRow();
        String query = "";
        if(row != null){
          RowSet rowSet = (RowSet)row.getAttribute("MachinesVO");
          if(rowSet != null){
            MachinesVOImpl machinesVOImpl = (MachinesVOImpl)rowSet.getViewObject();
            if(userRole.equalsIgnoreCase("SYS ADMIN")){
                    machinesVOImpl .setWhereClause(query related to sysadmin);
             //Similarly for other user roles.
             executeQuery();
    }And this piece of code needs to be executed before the jsff(which has the tree table) renders. Hence, i created a this methodAction as a default activity in the respective taskflow where the jsff is placed. Once this method get executed, the page should render the machines specific to the user.
    Here is the issue: getCurrentRow() method call is returning always NULL.
    Please correct me if i'm doing something wrong. I do tried the above mentioned approach by creating the method at '*ManagersVOImpl*' level too. Still the same issue.
    Thanks & Regards,
    Kiran

  • Context menu refresh issue in adf tree.

    Hi All,
    I am using jdeveloper 12.1.2.2.0.
    I have a programmatically generated tree in which I have added two buttons in the context menu using context menu facet.
    * I have selection listener in the tree and right click also selects the node.
    There are two issues regarding the context menu:
    1. If I right click the tree node, the context menu is showing only the two buttons I added and it is not showing the default expand/collapse, expand all/collapse all below and show as top options of context menu. Once I refresh the tree region doing some actions in the page, it is showing all the options.
    2. The buttons I added inside the context menu have disabled conditions and the trigger is given for the parent container "popup" which will be triggered by tree node selection. The problem is that whenever I right click the tree node, the popup is refreshed because of the trigger and the expand/collapse functions are not working. If I right the same node again the functions are working fine.
    How to resolve these issues?
    Thanks in advance.
    - Vignesh S.

    Any suggestions would be helpful.
    The below is the xml of the tree:
                                                           <af:tree var="node" value="#{dmc.btm.model}" id="btc"
                                                                     rowSelection="#{(viewScope.fc.editable || viewScope.cc.editable || viewScope.bc.editable) ? 'none' : 'single'}"
                                                                     immediate="false" initiallyExpanded="false"
                                                                     selectionListener="#{dmc.selectionListener}"
                                                                     fetchSize="100" expandAllEnabled="true">
                                                                <f:facet name="nodeStamp">
                                                                    <af:group id="g3">
                                                                        <af:image source="#{node.icon}" id="i1"/>
                                                                        <af:outputText value="#{node.id}" id="ot4"/>
                                                                    </af:group>
                                                                </f:facet>
                                                                <f:facet name="contextMenu">
                                                                    <af:popup childCreation="deferred" autoCancel="enabled"
                                                                              id="p1" partialTriggers="::btc"
                                                                              contentDelivery="lazyUncached">
                                                                        <af:menu text="menu 1" id="m1">
                                                                            <af:toolbar id="t4">
                                                                                <af:commandToolbarButton shortDesc="Create"
                                                                                                         text="#{prop['label.new']}"
                                                                                                         icon="images/new_ena.png"
                                                                                                         disabledIcon="images/new_dis.png"
                                                                                                         id="ctb4"
                                                                                                         actionListener="#{dmc.newListener}"
                                                                                                         partialSubmit="true"
                                                                                                         disabled="#{!dmc.createButtonEnabled || viewScope.fc.editable || viewScope.cc.editable}"/>
                                                                            </af:toolbar>
                                                                            <af:toolbar id="t5">
                                                                                <af:commandToolbarButton shortDesc="Delete"
                                                                                                         text="#{prop['label.delete']}"
                                                                                                         icon="images/delete_ena.png"
                                                                                                         disabledIcon="images/delete_dis.png"
                                                                                                         id="ctb5"
                                                                                                         actionListener="#{dmc.deleteListener}"
                                                                                                         disabled="#{!dmc.deleteButtonEnabled || viewScope.fc.editable || viewScope.cc.editable}"/>
                                                                            </af:toolbar>
                                                                        </af:menu>
                                                                    </af:popup>
                                                                </f:facet>
                                                            </af:tree>

  • 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.

    Hi,
    I've provided Parent-Child relationship(Self-reference).
    Following is the table structure with primary/foreign key constraints.
    DELIVERY_VERSION_ID (PK)(FK)
    HIERARCHY_ID (PK)(FK)
    DOC_GUID (PK)
    PARENT (FK)
    CURRENTTITLE
    LANGUAGE
    Please let me know, if you have any comments on table structure.
    Following is the sample data in table
    DELIVERY_VERSION_ID     DOC_GUID Parent HIERARCHY_ID
    3               a     null     a_b_c
    3               b     a     a_b_c
    3               c     b     a_b_c
    3               1.xml     c     a_b_c
    3               a     null     a_b1_c1
    3               b1     a     a_b1_c1
    3               c1     b1     a_b1_c1
    3               2.xml     c1     a_b1_c1
    3               a     null     a_b2_c2
    3               b2     a     a_b2_c2
    3               c2     b2     a_b2_c2
    3               3.xml     c2     a_b2_c2
    Thanks,
    Samba.

  • ADF Tree Table Repeats Elements at All Levels in nodeStamp Facet

    Fusion Middleware Version: 11.1.1.5
    WebLogic: 10.3.5.0
    JDeveloper Build: Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013
    Project: Custom WebCenter Portal Application integrated with custom ADF task flows.
    Hi
    I have an issue with ADF Tree Table (af:treeTable) whereby if I add a component to a group under the 'nodeStamp' facet it repeats for all levels in the tree even those outside the group.
    Overview:
    - 3-level master-detail structure created using ADF Business Components (3 view objects connected by 2 view links)
    - ADF Tree Table based on master-detail
    - Requirement to show 3 levels of data in the first column as a tree
    - Tree table is rendering correctly showing values for 'node.FullName', 'node.DisplayValue' and 'node.HoursType' respectively in a 3 level tree.
    - When another component is added to the top node in the tree ('node.FullName') for example some output text ('node.TimeBuildingBlockId'), it is displayed along side components 'node.DisplayValue' and 'node.HoursType' as well.
    Code snippet:
          <af:treeTable value="#{bindings.PerPeopleFVO1.treeModel}" var="node"
                        selectionListener="#{bindings.PerPeopleFVO1.treeModel.makeCurrent}"
                        rowSelection="single" id="tt1" styleClass="AFStretchWidth"
                        horizontalGridVisible="true" verticalGridVisible="true"
                        disableColumnReordering="true" summary="Timecard Entry"
                        displayRow="selected" expandAllEnabled="false"
                        contentDelivery="immediate" autoHeightRows="24"
                        columnStretching="column:column1"
                        binding="#{pageFlowScope.TimecardMB.tree_binding}">
            <f:facet name="nodeStamp">
              <af:column id="c1" headerText="Partner Details" width="500">
                <af:group id="g4">
                  <af:outputText value="#{node.FullName}" id="ot3"/>
                  <af:outputText value="#{node.TimeBuildingBlockId}" id="ot1"/>
                </af:group>
                <af:outputText value="#{node.DisplayValue}" id="ot4"
                                inlineStyle="color:Green; font-weight:bolder;"/>
               <af:outputText value="#{node.HoursType}" id="ot5"/>
                <f:facet name="filter"/>
              </af:column>
            </f:facet>
            <f:facet name="pathStamp">
              <af:outputText value="#{node}" id="ot2"/>
            </f:facet>
       <af:column FROM HERE.........>
    Any ideas greatly appreciated.

    Hi,
    Try using a switcher to distinguish all three levels of a tree. You can have three different facets, three different af:group 's.
    When you add in one level, it will not repeat in the other level.
    Please see the below snippet.
    <af:tree value="#{bindings.RefBusinessUnitView1.treeModel}" var="node"
    selectionListener="#{bindings.RefBusinessUnitView1.treeModel.makeCurrent}"
    rowSelection="single" id="t1">
    <f:facet name="nodeStamp">
    <af:group id="g1">
    <af:switcher id="s1"
    facetName="#{node.hierTypeBinding.viewDefName}">
    <f:facet name="model.RefBusinessUnitView">
    <af:group id="g2">       
    <af:outputText value="#{node.Code}" id="ot1"/>
    </af:group>
    </f:facet>
    <f:facet name="model.RefProductFamilyView">
    <af:group id="g3">
    <af:outputText value="#{node.ProductFamilyName}" id="outputText1"/>
    <af:outputText value="#{node.PName}" id="outputText2"/>
    </af:group>
    </f:facet>
    </af:switcher>
    </af:group>
    </f:facet>
    </af:tree>
    Nitish

  • ADF &CSS :overriding the default ADF:tree icons and CSSs

    Hi,
    I have major layout issue regarding ADF:tree, how can I override the default icons?
    I override the oracle CSS with my own, but when I did that, the tree images has changed, its now small hideous triangles, I copied some lines from the oracle CSS and it worked, but the small triangles still show inside the images, how can I remove those triangles, or can I write something in my CSS to override them?
    Thanks in prior,
    Ahmad Esbita

    Ahmad,
    According to bug 5682799, you cannot work around this in the current JDeveloper release. It is fixed in 10.1.3.3 (due out "soon," perhaps as early as 15th June, according to another post on this forum)
    John

  • ADF Tree with Boolean Check Box: How to find selected items

    Hi Experts,
    ADF: 11.1.1.5.0
    WLS: 10.3.6
    I am using an ADF Tree which contains elements at two levels (say Departments and Employees). My requirement is to give provision for user to select Departments and Employees using the check boxes. User should be able to select what ever Departments he/she likes and what ever employees he/she likes. There should not be a provision to select Employee with out selecting the corresponding Department (root node in the tree).
    I am facing the below issues while trying to implement this use case:
    1. Always, only the first master record will be expanded by default (I am using "Display Row" property value as "default" and "ExpandAllEnabled" as "true"). My need is to expand all the master records by default. So that user need not explicitly expand each master record node and then select the associated child records.
    2. Currently, I am using value change listener associated to af:selectBooleanCheckBox to identify the Departments and Employee records that have been selected. Since not all departments (masters) are expanded by default, if user selects the check box of department (master) and then expands the department node, automatically all the employees of that department are selected. But, this event is not triggering the value change listener for the employee records. Because of this, after a department node is selected and then expanded, all the child elements' check boxes are selected but the events are not generated. Hence, I am not able to capture the selection of employee records.
    To summarize,
    1. Please let me know how to expand all master nodes in af:Tree by default.
    2. Please let me know the best approach to identify the selected items (both master and detail items) in the af:Tree component using af:selectBooleanCheckBox.
    Thanks in advance,
    Rathnam

    Hi,
                Can you please elaborate the solution? I have a similar problem in
    https://forums.oracle.com/thread/2579664

  • Unable to check / uncheck a checkbox in a JTable...

    Hi all,
    I know that a lot of people have asked this question before but I am unable to find a solution even after going all the messages. My issue is:
    My initial rendering of the checkboxes inside the table works ok. I am using a TableCellRenderer and my input to determine the "checked/unchecked" is string like "true" or "false" and not boolean values. But I am unable to do check / uncheck any of the checkboxes.
    I would really appreciate any pointers.
    Thanks in advance.
    Below is my code snippet:
    public Component getTableCellRendererComponent(JTable table_,
    Object value_, boolean isSelected_, boolean hasFocus_, int rowIndex_,
    int colIndex_)
    Component component = super.getTableCellRendererComponent(table_,
    value_, isSelected_, hasFocus_, rowIndex_, colIndex_);
    indicator = table_.getColumnModel().getColumnIndex("IND");      
    if (indicator == colIndex_)
         if (value_.equals("true")){
              component = new JCheckBox("", true);           
         } else {
              component = new JCheckBox("", false);           
         return component;
    }

    Your TableModel has to indicate that the column is editable. Your TableModel also has to implement setValueAt() so that when the user changes the value, it updates the data.
    The table will know to use it's own boolean renderer/editor for that column because it knows what to do when a column returns a Boolean.

  • Problem in executing Child VO having bind parameter for ADF tree table

    In my application i need to show a ADF Tree table which is using two view objects having view links between them
    and the child VO has a bind variable.By clicking on the parent node of the parent VO attribute it showing the right result from the child VO attribute by the view link.
    I have tried to execute the child VO programmatically (In AmImpl) with the bind variable and using ViewCriteria as well
    but both the cases the child vo is not showing the proper result according to the bind variable instead of it is showing all the records on click of the parent node attribute.
    Your help will be appreciated.
    Thanks

    Hello,
    In the same situation I added another relationship to the view link to set the parameter.
    Tricky moment is you have to name your parameter like :Bind_ParamName as view link is setting this kind of parameters (check it in Query tab).

  • ADF: Tree Refresh after Expanding a node. Please Frank have a look!

    About this post:
    Re: ADF: Tree Refresh after Expanding a node
    Frank answered that he doesn't notice that behavior. I found out that this happens if an appication uses a custom skin.
    In SRDemoSampleADFBC, SRManage.jspx (Management from menu), if you make the explorer window small enough not to cover the whole tree, you can notice this (the page jumps to the top).
    Now if you change in adf-faces-config.xml the "skin-family" tag to "oracle", you will see that the tree component has changed (it has no triangle icons why this happens) and the page doesn't refresh.
    Minas

    It seems that there's more to the tree expansion icon than the skin definition. We're using the minimal skin and ADF puts out a special character to represent the disclosure symbol (which by the way, renders differently on IE6, than IE7, than Safari or Firefox on Mac). However, switching to the Oracle skin, the disclosure symbol comes out as a full-on image (triangle including the +). We have found this frustrating because the triangles seem not sufficiently suggestive to our users - but switching to the Oracle skin has other issues with white-on-white text.
    But in any case, the tree refresh after node expansion is another annoyance as I described in the other thread linked here (including URL to see problem in action).
    Cheers, Mark

  • JDev 11g (Boxer) - ADF-Tree ExpandingProblem

    Hi,
    I use the Boxer (JDev 11.1.1.0.0) Edition.
    Technology: ADF Business Components (BC), ADF Faces
    Database: Oracle XE (HR Schema)
    I have created BC for the Departments- and Employees-table.
    I drag-and-drop the DepartmentsView1 from the DataControl to the JSF-Page (in the center of a PanelStretchLayout)
    and choose Create --&gt; Trees --&gt; ADF Tree.
    In the "Edid Tree Binding"-Dialog --&gt; Tree Level Rules, I add the EmployeesView (Code below):
    &lt;af:panelStretchLayout&gt;
    bq. &lt;f:facet name="center"&gt;bq. &lt;af:tree value="#{bindings.DepartmentsView1.treeModel}" var="node"selectionListener="#bindings.DepartmentsView1.treeModel.makeCurrent}" \\ rowSelection="single"&gt; \\ &lt;f:facet name="nodeStamp"&gt; \\ &lt;af:outputText value="#{node}"/&gt; \\ &lt;/f:facet&gt; \\ &lt;/af:tree&gt;
         &lt;/f:facet&gt;
    (Fetchsize and Rangsize are default (25), the department with ID=50 has more than 25 employees)
    Problem:
    I run the page, all works fine.
    1) First I expand the department (ID=50) --&gt;works
    2) then I retract the node (ID=50) --&gt; works
    3) I expand the department (ID=50) --&gt; problem
    ADF rendered only 25 elements (the Fetchsize) and shows the Text "Daten werden abgerufen..." (Retrieving data ...)
    Has anybody the same problem, anybody an idea?
    Many thanks!

    I believe this has already been fixed in our main code branch. I will enter a boxer bug and make sure that the fix gets backported to boxer so that it is available in the next boxer patch. If I remember correctly, the issue had to do with trees with a large display area (with default fetchSize of 25). The issue is that the tree has to make multiple round trips to the server in order fill the visible area (view port) on the page.
    Do either of the following workarounds work:
    1) Set a fetchSize attribute on the af:tree tag larger than 25 (<af:tree fetchSize="75">). You may want to increase the rangeSize in your pageDef file as well so that the model rangeSize matches the view fetchSize.
    2) Shrink the size of the tree on the page so that it does not have to make multiple round trips to the server to fill it's view port.

  • Formatting multiple values in ADF tree node

    JDeveloper 11.1.2.2.0 -- WinXP
    I have an ADF tree component that is bound to a table with two values per node level.
    The results look like:
    Fruit 1234
        -- VineGrown 5678
           -- Grapes 4567
               -- Red 1234
               -- Green 56
    Veggie 4567
       -- Root 45
          -- Carrot 34
          -- Potato 987What I want to be able to do is format the outputText so that it will end up looking more like "Fruit :: Total 1234"
    The issue is that the EL of #{node} displays both the node level value and the number as one item. This is in the facet nodeStamp.
    If I try and get more specific with the EL, I can separate out the Uses number by doing #{node.Uses} but I can't get the node name to still be dynamic for each level.
    My binding options for node are shown as:
    node.Type
    node.GrownLocation
    node.Group
    node.Value
    node.Uses
    Of course setting the first #{node} to any of these more specific values doesn't display at all for the node levels that don't correspond to just that one level.
    Ideally the EL line would look something like:
    <af:outputText value="#{node.name} ::  Total: #{node.Uses}" id="ot3"/>where node.name could be any one of the levels: Type, GrownLocation, Group, etc.
    Is this something that pathStamp would be used for? I couldn't really figure out how pathStamp worked from the docs.
    Thanks for any help. Hopefully this makes some sense.
    --jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You can try something like this:
    <af:column id="c1">
    <af:outputText value="#{node.name} ::  Total: #{node.Uses}" id="ot3" rendered="#{node.name != null}"/>
    <af:outputText value="#{node.Type} ::  Total: #{node.Uses}" id="ot3" rendered="#{node.Type!= null}"/>
    <af:outputText value="#{node.GrownLocation} ::  Total: #{node.Uses}" id="ot3" rendered="#{node.GrownLocation!= null}"/>
    <af:outputText value="#{node.Group} ::  Total: #{node.Uses}" id="ot3" rendered="#{node.Group!= null}"/>
    </af:column>So the rendered property will make sure that the correct node is displayed according to each level.
    Hope this helps.

  • ADF Tree Traversal from one node to its leafs

    Hello,
    after a titanic effort I have been able to add a checkbox next to each node of an adf tree table.
    This checkbox is based on an "helper" entity attribute (not mapped to a column table on the database).
    My next huge problem is to perform an automatic selection of all the checkboxes next to the nodes under the currently selected one.
    For example, if the user checks a checkbox in the second level, then all the checkboxes next to the nodes under that, belonging to level three and four must be checked.
    If this helps, in my case there are at most four levels.
    Up until now I can get all the information from the currently checked node, but I fail to navigate the hierarchy under it for the automatic checking. I think that one problem is to navigate all the rows in the (only) VO the tree is based on. For example, since the tree is not expanded at the beginning, if I iterate on the VO retrieved from the current selected node at the top level, I can't see any rows corresponding to any children. Maybe I just miss something.
    I have followed this example from Frank Nimphius, which only gets the current selected nodes, as I said, but no more. Maybe this is a good starting point, but I need to advance somehow.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/32-tree-table-from-single-vo-169174.pdf
    Can anyone help?
    Thanks.

    Hi,
    here is a sample of how to search in trees, which actually shows how to traverse trees from a specific node
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/61search-in-rendered-trees-177577.pdf
    Given you have a transient attribute defined, each node (and instance of JUCtrHierNode --> getRow will give you access to the attribute for read/access). Note that because the checkbox is stamped in the context of the tree, upon selecting a parent node, you need to refresh the tree to show the selection state change
    Frank

Maybe you are looking for