Tree column in AdvacedDataGrid component

Hi,
is it possible to define the column in which the tree is
displayed? I need the tree in the second column. I always get the
tree in the first column of the grid. This can't be so hard to
change. I saw this feature in the treegrid implementation in
"flexlib".
Thanks!

Hi,
My xml data is a flat data. It looks like:
<name>John Ross</name> <country>USA</country> <GroupID>1</GroupID>
<name>Mary Down</name> <country>USA</country> <GroupID>1</GroupID>
My AdvancedDatagrid uses GroupingCollection with GroupField is "GroupID".
I don't know how to change tree column to column 2 or 3 instead of column 1.
Thanks

Similar Messages

  • How to construct the component tree in my custom component?Help!

    Hi, i am writing a custom component like this:
    public class HtmlCategory extends HtmlPanelGrid
         public void processRestoreState(javax.faces.context.FacesContext context,
                java.lang.Object state)
              setColumns(1);
              HtmlCommandLink link=new HtmlCommandLink();
              link.setValue("Let's Bingo");
              MyUtil.setActionListener(context,link,"#{temp.mytest}");
              UIParameter param=new UIParameter();
              param.setName("name");
              param.setValue("Robin!");
              link.getChildren().add(param);
              param.setParent(link);
              getChildren().add(link);
              link.setParent(this);
              super.processRestoreState(context,state);
    }         you see, i want to construct the compont tree at Restore View phase this way,because the structure of the component tree will always be the same, so i don't the user to write extra code.
    But the children of the component are not rendered,the renderer of the HtmlCategory component just extends the HtmlGridRenderer(myfaces) directly,and always calls the "super" methods in the encode methods of the renderer.
    I got a message from the console:
    Wrong columns attribute for PanelGrid id0:id4: -2147483648
    but i have set the columns attribute in the code above, so what's happening? or please give some advice about how to render the component tree by myself in Restore View with the tree constructing code in the custom component class code,just lke the code above.
    Best Regards:)
    Robin

    Well, i don't know if i have got my question clear.
    usually, according to the tags you use in the jsf page, a component tree will be created at the Restore View phase,for example:
    <f:form>
      <h:panelGrid ...........>                         
              <h:dataTable ................>
              </h:dataTable>
       </h:panelGrid>
    </f:form>but because i am writing a component for my web app, all the child components and their attributes are not likely to change. so i want to reduce the tags into one custom tag, and construct the component tree internally by myself.But it is not the case of backing bean.So i wrote the the code in the method:
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)as it is shown in my orginal message.But it seems that it is not right way to construct my component tree.So where should i put the code that construct the component tree?Overriding the method :
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)is not the right way?
    Best Regards:)
    Robin

  • Af:tree column in af:table

    I have af:tree as a column in an af:table and the expand/collapse functionality of af:tree behaves in a way that it works only on the last row added to the table and moreover while working on the last row it expands/collapses all trees in all other rows. All the other rows won't work at all.
    All rows have their own instance of TreeModel. Any clue why this happens ? Does anybody use af:tree as a column in a table ?
    JDev/ADF 10.1.3.3.0.4157
    Thanks for any help
    <af:table binding="#{bean.table}"
    value="#{bean.listTree}"
    banding="row" bandingInterval="1"
    var="row">
    <f:facet name="selection">
    <af:tableSelectMany binding="#{editor.component}"
    text=""
    shortDesc="Select">
    </af:tableSelectMany>
    </f:facet>
    <af:column id="treeLogCol" headerText="Tree" sortable="false">
    <af:tree id="treeLog"
    var="sel" value="#{row.testModel.model}"
    disclosureListener="#{bean.testDisclosureListener}"
    focusRowKey="#{row.testModel.model.focusRowKey}">
    <f:facet name="nodeStamp">
    <af:commandLink text="#{sel.label}" action="#{sel.getOutcome}"/>
    </f:facet>
    </af:tree>
    </af:column>
    </af:table>

    A workaround that seems to work fine is to define a disclosureListener as following -
    public void testDisclosureListener(DisclosureEvent disclosureEvent)
    CoreTree tree = (CoreTree)disclosureEvent.getComponent();
    TableRowWrapper row =
    (TableRowWrapper) ((UIXTable) _table).getRowData();
    PathSet set = tree.getTreeState();
    try
    set.setTreeModel(row.getTreeModel());
    catch(Exception e)
    if (disclosureEvent.isExpanded())
    set.add();
    else
    set.remove();
    // comment the following row since it will expand/collapse all trees in the column
    // AdfFacesContext.getCurrentInstance().addPartialTarget(_table);
    }

  • How I can obtain the value of a column in a component table?

    thank you
    i have a table component, and which not bound a table database, it only display data, and i desire obtain the value of a column.
    thanks you sorry my english

    Hi!
    Try to use getValue(FieldKey fieldKey, RowKey rowKey) method of your dataprovider.
    Thanks,
    Roman.

  • Right alignment for OO tree column

    Hi experts,
    how can i align the data of type characters in the OO tree alv display? i want to align it to the right.
    Thanks.

    Hello,
    Set Alignment of the Text in the Column
    You are able to set where the content of a column will be put:
    ·        Left aligned
    ·        Centered
    ·        Right-aligned
    You are able to change the alignment of text in the design object (header and footer area of page or list) and in the ALV output.
    Use the method CL_SALV_COLUMN SET_ALIGNMENT
    Check
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm

  • Tree columns autofit in Tree

    Hello Everyone,
            I need to adjust my columns in a tree such that, all the unused columns (which has empty header strings and they are present only at the end) should be deleted and that, the columns should exactly fit my tree. How can I implement this?
    Thanks,
    Vasanth.
    Ya Ya

    I don't mean to barge in, but here's a little bit of code that will autosize the columns without resizing the whole table. Also, you can't really delete columns, hiding them is what you want. The actual value that you'll read from the tree is just the tag from the first column, so any subsequent columns will only display what you put in them.
    Message Edited by Marc A on 01-05-2007 09:28 AM
    Attachments:
    autosizecols.PNG ‏5 KB

  • Sorting of a column (adf table component) doesn't work in frame

    Hi,
    I just developed a little application with just one query. The results are shown in an adf table component with the possibility of column sorting.
    The application works just fine if i open it with its actual URL, but when I put it in a classic html frameset I'm not able to sort columns anymore.
    The frameset is quite simple. Something like this
    <frameset rows="90%,10%">
    <frame src="header.htm"/>
    <frame src=application URL />
    </frameset>
    I tried to change the targetFrame attribute of the form component but nothing.
    Any idea?
    By the way, I Work with JDeveloper 10.1.3.2.0.4066 and its adf faces components

    Hi,
    I recall an issue in 10.1.3.2 with inner frames that had the wrong JavaScript reference to the DOM. So I assume this to be the same in your case. So you can give it a try with JDeveloper 10.1.3.3 and see if this fixes the problem
    Frank

  • Step by step aproach for Document flow tree creation in Standard component

    Hi All,
    Can any one pls help in providing the steps i need to follow to create Document flow Tree using custom component in standard Opportunity/Quotation document.
    i Have created a component and assigned this component view as assignment block in Standard Component...
    but i would require the step -by-step ( Alogorithm kind off ) to extract the data flow from quotation document say to the creation of document flow ( tree with icons ) ..
    ANy help is appreciated !!!!

    Hi All,
    Can any one pls help in providing the steps i need to follow to create Document flow Tree using custom component in standard Opportunity/Quotation document.
    i Have created a component and assigned this component view as assignment block in Standard Component...
    but i would require the step -by-step ( Alogorithm kind off ) to extract the data flow from quotation document say to the creation of document flow ( tree with icons ) ..
    ANy help is appreciated !!!!

  • Label indention for advanceddatagrid's tree column

    Hello,
    I am using advanceddatagrid with and without a label itemrenderer.
    This is how it looks WITHOUT any itemrenderer:
    And this is how it looks WITH itemrenderer:
    When I do not use any itemrenderer, I can see the indention properly. But if I use a label itemrenderer, indention is completely lost Is there a way I can retain the indetion of the data when I use label itemrenderer?
    Appreciate your help..
    Cheers!
    Deepak

    we  can do by this way..
    gor getting indention we can calculate the blank space for each node in item renderer. eg:
    var defaultSpace:string= " ";
    //dept=3(eg)
    var inde:string="";
    for (var count:=0;count<=dept;count++)
         inde=inde+defaultSpace;
    text=inde+lable

  • Component has not input columns and/or input columns have invalid id when creating package programmatically

    I am developing an ETL tool which has to create SSIS packages dynamically (and later execute them without being edited in Data Tools). One of my proto type scenarios is a simple data flow from a flat file to a flat file - without anything in between.
    However there is a problem with the columns of the flat file destination - it says it doesn't have any.
    Saving the package to XML and opening the destination component in the advanced editor (tab "Input and Output Properties") really shows that are no input columns defined. One click on the tab "Column Mappings" however solves the
    problem. The columns and the mapping are generated, the package can run.
    I already tried to place "ReinitializeMetaData()" calls nearly anywhere in the code, for both components, unfortunately without success:
    destinationComponentWrapper.AcquireConnections(null);
    destinationComponentWrapper.ReinitializeMetaData();
    destinationComponentWrapper.ReleaseConnections();
    The actual error during validation is (When the line for column mapping in the code below is commented out):
    "0xC020201B - The number of input columns for Flat File Destination.Inputs[Flat File Destination Inputs] cannot be zero"
    I am also trying to insert a column mapping - this leads to a com error: 0xC020201B
    In this case I am wondering why Data Tools tell me that there are no input columns yet I can iterate over them - they just don't have a valid ID (0x8000004B / -2147483573) which is then causing the 0xC020201B.
    See also "PROBLEM HERE" marker in the code below.
    How can I make the destination component recognize the columns programmatically, as when I click on the "Column Mappings" tab of the advanced editor of the component in Data Tools?
    Here is the complete proto type code:
    using Microsoft.SqlServer.Dts.Pipeline.Wrapper;
    using Microsoft.SqlServer.Dts.Runtime;
    using Microsoft.SqlServer.Dts.Runtime.Wrapper;
    using System;
    using System.IO;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Dts = Microsoft.SqlServer.Dts;
    namespace msdatapipe
    class Program
    static void Main(string[] args)
    Dts.Runtime.Application application = new Dts.Runtime.Application();
    Dts.Runtime.Package package = new Dts.Runtime.Package();
    package.Name = "Data Commander DTS Package";
    // ADD PIPELINE TASK
    Dts.Runtime.Executable pipelineExecutable = package.Executables.Add("STOCK:PipelineTask");
    Dts.Runtime.TaskHost pipelineTaskHost = (Dts.Runtime.TaskHost)pipelineExecutable;
    pipelineTaskHost.Name = "Data Commander Pipeline Task";
    Dts.Pipeline.Wrapper.MainPipe pipelineTask = (Dts.Pipeline.Wrapper.MainPipe) pipelineTaskHost.InnerObject;
    // ADD SOURCE COMPONENT TO THE PIPELINE TASK
    String sourceFilePath = "C:\\cmi\\tmp\\data.csv";
    Dts.Runtime.ConnectionManager sourceConnectionManager = package.Connections.Add("FLATFILE");
    sourceConnectionManager.ConnectionString = sourceFilePath;
    sourceConnectionManager.Name = "Source Connection";
    sourceConnectionManager.Description = "Source Connection Manager";
    sourceConnectionManager.Properties["ColumnNamesInFirstDataRow"].SetValue(sourceConnectionManager, "True");
    sourceConnectionManager.Properties["Format"].SetValue(sourceConnectionManager, "Delimited");
    sourceConnectionManager.Properties["TextQualifier"].SetValue(sourceConnectionManager, "\"");
    sourceConnectionManager.Properties["CodePage"].SetValue(sourceConnectionManager, "65001");
    sourceConnectionManager.DelayValidation = false;
    // START --- MANUALLY READ COLUMNS FROM TEXT FILE AND ADD TO SOURCE CONNECTION MANAGER COLUMNS
    IDTSConnectionManagerFlatFile100 sourceConnectionInterface = sourceConnectionManager.InnerObject as IDTSConnectionManagerFlatFile100;
    using (StreamReader reader = new StreamReader(sourceFilePath))
    String firstSourceFileLine = reader.ReadLine();
    String[] columnNames = firstSourceFileLine.Split(',');
    for (int i = 0; i < columnNames.Length; ++i)
    columnNames[i] = columnNames[i].Substring(1, columnNames[i].Length - 2);
    IDTSConnectionManagerFlatFileColumns100 sourceColumns = sourceConnectionManager.Properties["Columns"].GetValue(sourceConnectionInterface) as IDTSConnectionManagerFlatFileColumns100;
    IDTSConnectionManagerFlatFileColumn100 column = null;
    foreach (String columnName in columnNames)
    column = sourceColumns.Add();
    column.DataType = DataType.DT_TEXT;
    column.ColumnDelimiter = ",";
    column.TextQualified = true;
    (column as IDTSName100).Name = columnName;
    Console.WriteLine(columnName);
    column.ColumnDelimiter = "\r\n";
    // END --- MANUALLY READ COLUMNS FROM TEXT FILE AND ADD TO SOURCE CONNECTION MANAGER COLUMNS
    sourceConnectionInterface.RowDelimiter = "\r\n";
    Dts.Pipeline.Wrapper.IDTSComponentMetaData100 sourceComponent = pipelineTask.ComponentMetaDataCollection.New();
    sourceComponent.Name = "Flat File Source";
    sourceComponent.ComponentClassID = "DTSAdapter.FlatFileSource";
    sourceComponent.ValidateExternalMetadata = true;
    CManagedComponentWrapper sourceComponentWrapper = sourceComponent.Instantiate();
    sourceComponentWrapper.ProvideComponentProperties();
    // LINK CONNECTION TO THE SOURCE COMPONENT
    sourceComponent.RuntimeConnectionCollection[0].ConnectionManager = Dts.Runtime.DtsConvert.GetExtendedInterface(sourceConnectionManager);
    sourceComponent.RuntimeConnectionCollection[0].ConnectionManagerID = sourceConnectionManager.ID;
    // Connect to the data source, and then update the metadata for the source.
    //sourceComponentWrapper.Validate();
    //sourceComponentWrapper.ProvideComponentProperties();
    sourceComponentWrapper.AcquireConnections(null);
    sourceComponentWrapper.ReinitializeMetaData();
    sourceComponentWrapper.ReleaseConnections();
    // ADD DESTINATION CONNECTION MANAGER
    Dts.Runtime.ConnectionManager destinationConnectionManager = package.Connections.Add("FLATFILE");
    destinationConnectionManager.ConnectionString = "C:\\cmi\\tmp\\data_out.csv";
    destinationConnectionManager.Name = "DatComConOut";
    destinationConnectionManager.Description = "Data Commander Connection Manager";
    destinationConnectionManager.DelayValidation = false;
    destinationConnectionManager.Properties["Format"].SetValue(destinationConnectionManager, "Delimited");
    destinationConnectionManager.Properties["TextQualifier"].SetValue(destinationConnectionManager, "\"");
    destinationConnectionManager.Properties["CodePage"].SetValue(destinationConnectionManager, "65001");
    // ADD DESTINATION COMPONENT
    Dts.Pipeline.Wrapper.IDTSComponentMetaData100 destinationComponent = pipelineTask.ComponentMetaDataCollection.New();
    destinationComponent.Name = "Flat File Destination";
    destinationComponent.ComponentClassID = "DTSAdapter.FlatFileDestination";
    destinationComponent.ValidateExternalMetadata = true;
    CManagedComponentWrapper destinationComponentWrapper = destinationComponent.Instantiate();
    destinationComponentWrapper.ProvideComponentProperties();
    destinationComponent.RuntimeConnectionCollection[0].ConnectionManager = Dts.Runtime.DtsConvert.GetExtendedInterface(destinationConnectionManager);
    destinationComponent.RuntimeConnectionCollection[0].ConnectionManagerID = destinationConnectionManager.ID;
    // CREATE PATH
    Dts.Pipeline.Wrapper.IDTSPath100 pipelinePath = pipelineTask.PathCollection.New();
    pipelinePath.AttachPathAndPropagateNotifications(sourceComponent.OutputCollection[0], destinationComponent.InputCollection[0]);
    // DESTION CONNECTION MANAGER COLUMNS
    IDTSConnectionManagerFlatFile100 destinationConnectionInterface = destinationConnectionManager.InnerObject as IDTSConnectionManagerFlatFile100;
    IDTSConnectionManagerFlatFileColumns100 destinationColumns = destinationConnectionManager.Properties["Columns"].GetValue(destinationConnectionManager) as IDTSConnectionManagerFlatFileColumns100;
    // START --- MANUALLY READ COLUMNS FROM DESTINATION COMPONENT AND ADD THEM TO DESTIONATION CONNECTION MANAGER COLUMNS
    foreach (IDTSInput100 input in destinationComponent.InputCollection)
    IDTSVirtualInput100 virtualInput = input.GetVirtualInput();
    IDTSConnectionManagerFlatFileColumn100 column = null;
    foreach (IDTSVirtualInputColumn100 virtualInputColumn in virtualInput.VirtualInputColumnCollection)
    column = destinationColumns.Add();
    column.DataType = DataType.DT_TEXT;
    column.ColumnDelimiter = ",";
    column.TextQualified = true;
    (column as IDTSName100).Name = virtualInputColumn.Name;
    column.ColumnDelimiter = "\r\n";
    // END --- MANUALLY READ COLUMNS FROM DESTINATION COMPONENT AND ADD THEM TO DESTIONATION CONNECTION MANAGER COLUMNS
    // NEED TO CREATE NEW META DATA AFTER COLUMNS
    destinationComponentWrapper.AcquireConnections(null);
    destinationComponentWrapper.ReinitializeMetaData();
    destinationComponentWrapper.ReleaseConnections();
    // MAP INPUT COLUMNS
    foreach (IDTSInput100 input in destinationComponent.InputCollection)
    IDTSVirtualInput100 virtualInput = input.GetVirtualInput();
    foreach (IDTSVirtualInputColumn100 virtualInputColumn in virtualInput.VirtualInputColumnCollection)
    Console.WriteLine("VIC " + virtualInputColumn.Name + "(" + virtualInputColumn.ID + ")");
    destinationComponentWrapper.SetUsageType(input.ID, virtualInput, virtualInputColumn.LineageID, DTSUsageType.UT_READONLY);
    foreach (IDTSExternalMetadataColumn100 metadataColumn in input.ExternalMetadataColumnCollection)
    if (virtualInputColumn.Name.Equals(metadataColumn.Name)) {
    // PROBLEM HERE:
    // An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in msdatapipe.exe
    // Additional information: Exception HRESULT: 0xC0047072
    // at this point is virtualInputColumn.ID = -2147483573
    destinationComponentWrapper.MapInputColumn(input.ID, virtualInputColumn.ID, metadataColumn.ID);
    // if the code is commented out and the program rerun there is a package validation error instead: 0xC020201B
    // 0xC020201B - The number of input columns for Flat File Destination.Inputs[Flat File Destination Inputs] cannot be zero
    // NEED TO CREATE META DATA AFTER COLUMNS HAVE BEEN ADDED TO THE DESTIONATION MANAGER
    // AND USAGE TYPE HAS BEEN SET OR WE'LL GET A VS_NEEDSNEWMETADATA
    destinationComponentWrapper.AcquireConnections(null);
    destinationComponentWrapper.ReinitializeMetaData();
    destinationComponentWrapper.ReleaseConnections();
    // SAVING DTSX PACKAGE FOR DEBUGGING
    application.SaveToXml("C:\\Users\\CMI\\documents\\visual studio 2010\\Projects\\SSIS Tutorial\\SSIS Tutorial\\generated.dtsx", package, null);
    Microsoft.SqlServer.Dts.Runtime.DTSExecResult packageResults = package.Execute();
    Console.WriteLine("package execution result: " + packageResults.ToString());
    // Basic check for errors
    foreach (DtsError error in package.Errors)
    Console.WriteLine("ErrorCode : 0x{0:X}", error.ErrorCode);
    Console.WriteLine(" SubComponent : {0}", error.SubComponent);
    Console.WriteLine(" Description : {0}", error.Description);
    Console.WriteLine("press the return key hard to continue...");
    Console.Read();

    I suggest you revise your code against examples given in http://blogs.msdn.com/b/mattm/archive/2008/12/30/samples-for-creating-ssis-packages-programmatically.aspx
    Arthur My Blog

  • ADF Tree 11g column 100% to fit the avilable space in af:panelCollection

    Hi All,
    I want to stretch the tree column to fit all the available space in af:panelCollection. I ve changed its InlineStyle to width:100% but its is suggesting to use StyleClass to AFStretchWidth. I tried both the options but didn't achieve desired output.
    Any hint or suggestion will be highly appreciated.
    Thanks in advance.
    Best Regards
    Bilal
    Edited by: Bilal on Oct 3, 2011 7:41 PM

    Hi All,
    I have tried various options but in vain.
    A clarification is that I have a page having ADF query panel with tree table. I don't want to show the other columns in the result. Just tree is enough to display the contents.
    I want to maximize the tree column to fit into the available space of af:panelCollection.
    Option 1. I set the styleClass to AFStretchWidth for af:column of the ADF tree. It didn't work.
    Option 2. I encapsulated af:column of the tree into the f:center facet of af:panelStretchLayout and set af:panelStretchLayout styleClass to AFStretchWidth. The af:column of the tree disappeared. No output.
    Option 3. I encapsulated af:treeTable into the f:center facet of af:panelStretchLayout. It is giving error that af:panelStretchLayout is not a valid child of af:panelCollection, so it also didn't work.
    Option 4. I encapsulated af:panelCollection into the f:center facet of af:panelStretchLayout. It also didn't work.
    Any thing I am missing ... Any other option to try out.
    Any help will be highly appreciated.
    Thanks ... Best Regards
    Bilal
    Edited by: Bilal on Oct 4, 2011 5:06 AM

  • 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

  • Tree table doesn't update the data for checkboxes properly

    Hi All,
    I'm trying to use tomahawk tree table component to render a tree column of items along with checkboxes in other columns. Note that all the other columns except tree column are generated dynamically inside backing bean and checkboxes too added to the column dynamically.
    All works fine until it comes to the valuechangelistener.Inside valuechangelistener if try to fetch the component id from the event, it doesn't return the correct id and instead always return the id that corresponds to the last node of tree.
    Has anyone successfully used tree table to display input components? or any workaround my problem would be much appreciated.
    The code where I'm adding my dynamic columns as well as checkboxes is as below.
    for (int i = 0; i < roleNames.size(); i++) {
    HtmlSimpleColumn column = new HtmlSimpleColumn();
    htmlTree.getChildren().add(column);
    // Create header
    HtmlOutputText header = new HtmlOutputText();
    header.setValue(roleNames.get(i));
    column.setHeader(header);
                   ValueExpression valueExpression = FacesContext
    .getCurrentInstance().getApplication()
    .getExpressionFactory()
    .createValueExpression(
    FacesContext.getCurrentInstance().getELContext(),
    "#{treeItem.name}",
    Object.class);
    // Create check box
    HtmlSelectBooleanCheckbox checkbox = new HtmlSelectBooleanCheckbox();
                   // add the hidden input elements
                   HtmlInputHidden input = new HtmlInputHidden();
                   HtmlInputHidden input1 = new HtmlInputHidden();
                   // Bind changeRolePresent method in to listen to the
    // role permission change
                   checkbox.setImmediate(true);
    Class<?>[] parms = new Class[] { ValueChangeEvent.class };
    System.out.println("Adding value change listener to permission grid");
    MethodExpression valueChangeListener = FacesContext
    .getCurrentInstance().getApplication()
    .getExpressionFactory().createMethodExpression(
    FacesContext.getCurrentInstance()
    .getELContext(),
    "#{customTreeBean.changeRolePermission}",
    String.class, parms);
    checkbox
    .addValueChangeListener(new MethodExpressionValueChangeListener(
    valueChangeListener));
    input.setValueExpression("value", valueExpression);
                        input1.setValue(roleNames.get(i));
                   valueExpression = app
    .getExpressionFactory()
    .createValueExpression(
    FacesContext.getCurrentInstance().getELContext(),
    "#{treeItem.roleDetailsList["+i+"].selectedRole}",
    Object.class);
    checkbox.setValueExpression("value", valueExpression);
                   //checkbox.setOnclick("selectAll(this)");
                   checkbox.getChildren().add(input);
                   checkbox.getChildren().add(input1);
    column.getChildren().add(checkbox);
    In above code there will be four columns added dynamically and for each column a checkbox component is being added here. Rest JSF takes care to create checkboxes for each row of tree. But one thing that I noticed while viewing source that JSF is creating duplicate names for checkboxes in a batch of four (So for say if I had 3 rows, every row of checkboxes had same set of four ID's assigned, like ID1, ID2, ID3, ID4)
    Please help,
    Umesh

    Hi!!!
    Could you see this document : http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=BUG&p_id=3970326
    It describes the exactly bug, but there isn't solution...

  • Sample ALV Tree in ABAP Wed Dynpro

    Hi Guys,
    I tried to create a ALV with TREE column in ABAP Web Dynpro.
    Do you have any sample for this?
    Thanks.
    Tee

    Following 2 things are the most important steps
    "A) identify the table as hierarchy table:
    wd_this->go_table->if_salv_wd_table_settings~set_display_type( if_salv_wd_c_table_settings=>display_type_hierarchy).
    (wd_this->go_table is the reference to wd alv object:)
    "B) mark the columns you want to have as nodes with following statement:
    ls_col-r_column->if_salv_wd_column_hierarchy~set_hierarchy_column( value = abap_true ).
    (ls_col is reference to the column)
    Also you can check standard component salv_wd_demo_table_tree
    Radhika

  • Polyhierarchy Swing Component

    Hello Forum users!
    I want to announce a new kind of Swing Component i released on sourceforge, which could be a nice alternative to JTree/JTable for polyhierarchies (graphs with nodes that have more than one parent).
    https://sourceforge.net/projects/polytreetable/
    It is a JTable extension and offers multiple node attribute columns. All column can be set editable, even the tree column. The package comes with two samples, showing the visualization principles of the Component. I used it for displaying grammars and class file dependencies (that are cyclic very often).

    Read the tutorial: [How to Use Spinners|http://java.sun.com/docs/books/tutorial/uiswing/components/spinner.html]
    You will find some examples there.

Maybe you are looking for

  • My Portable Hard Drive wont show on my Macbook Pro

    I have a WD My Passport. it used to show up on my mac but one day i couldnt get it to show up. it appears on every other computer and laptop i have tried, just not mine! how do i go about fixing this as it has a few important files...

  • Noise in thermocouple measurement using PCI-6024E DAQ card

    I am using a PCI-6024E DAQ card for thermocouple(TC) measurement. The TC is installed in the mold cavity of an injection molding (IM) machine. The leads from the TC are connected to the DAQ card using a CB-68LP board. I made a  temperature mesurment

  • Outlook 2011 suddenly does not recognize password

    I am running OS X 10.9.2 Mavericks.  I recently have developed a problem accessing my Exchange account mail through Outlook 2011.  The error message I receive is: The server for account "XXXX" returned the error "Logon failure: unknown user name or b

  • IMac 5K and iPhone charging problem

    Hi, I just got my new iMac 5K, and I noticed that when I connect an iPhone or iPad to the iMac, the charge keep going on and off constantly!! Anyone faces same problem here? Saeid

  • Color Problem on Bar Chart

    I created a bar chart with Crystal 9.2 on my laptop. I then copied that rpt file to the company server. The report ran fine using the company's Crystal Xi, except that most of the colors disappeared from my bar chart. Only a couple bars are in color,