5 Replies Latest reply: Jun 5, 2012 4:50 PM by Shay Shmeltzer-Oracle RSS

    ADF Table

    929464
      Hello,

      I am required create a grid/table component in Adf and merge the cells of the table based on my backend data. I have difficulty in figuring out how to merge cells of a Adf Table. Please let me know how I can achieve this. Help is greatly appreciated !

      Thank You
        • 1. Re: ADF Table
          Shay Shmeltzer-Oracle
          Can you elaborate on what you mean by merge?
          Is it something like the column grouping shown here:
          http://jdevadf.oracle.com/adf-richclient-demo/faces/components/table/columnGroupTable.jspx
          You can get the ADF Faces Components Demo source file and see how this was created:
          http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html
          • 2. Re: ADF Table
            929464
            Sorry,

            1. To be able to merge two(or more) adjacent column cells of single row
            2. To be able to merge two( or more) adjacent row cells of a single column

            Thank You Shay . Is it possible with Adf table or Trinidad table this way?
            • 3. Re: ADF Table
              Shay Shmeltzer-Oracle
              What is merge? Do you want them to be under the same title? Do you want a single column that has data for both?
              Do you want to merge at runtime or design time?
              Can you give an example of what you are aiming to achieve?
              • 4. Re: ADF Table
                929464
                Sure, Merge as in overlap. So basically I would a form a grid. Onto the grid, i will be required a put words in certain boxes ( a box - one row + one column)
                eg :

                .|-|-|-|-|-|-|-|-|
                .|-|-|-|-|-|-|-|-|
                .|-|-|-|-|-|-|-|-|
                .|-|-|-|-|-|-|-|-|
                .|-|-|-|-|-|-|-|-|

                I have a list of words in the format {(USC,6), (Oracle,12),...}which means USC has to occupy 6 boxes in any fashion( either 6 columns in one row or 3 columns in 2 rows). I need to merge or overlap certain boxes to form such a word in the grid. I would also need to this fill these list of words optimally into the grid(20 columns * 5 rows)

                eg:(USC,6)

                .|......|-|-|-|-|-|
                .|......|-|-|-|-|-|
                .|-|-|-|-|-|-|-|-|
                .|-|-|-|-|-|-|-|-|
                .|-|-|-|-|-|-|-|-| ( the word USC will fit into the dotted spot with an appropriate font size).

                Edited by: 926461 on Jun 5, 2012 2:07 PM

                Edited by: 926461 on Jun 5, 2012 2:07 PM

                Edited by: 926461 on Jun 5, 2012 2:08 PM

                Edited by: 926461 on Jun 5, 2012 2:09 PM

                Edited by: 926461 on Jun 5, 2012 2:09 PM
                • 5. Re: ADF Table
                  Shay Shmeltzer-Oracle
                  I think that the new af:panelGridLayout is what you are looking for:
                  http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_panelGridLayout.html
                  http://jdevadf.oracle.com/adf-richclient-demo/faces/components/panelGridLayout.jspx