How to have a dynamic number of tables where new rows can be added

Hello
I'm new to ADF and have a task where I on a single page should I show that a dynamic number of tables and each table below should show some fields and create a button to create new lines in the table. To be more precise each table show an education for the individual and the rows of the table shows the meanders of specific education.
I thought to use a treetable but don't think it's the right way to go because of the new line add feature - I'm not sure of the combination of having a dynamic number of tables and the ability to create new lines of each table.
If you know where I can find a model similar to the one above or just give me your opinion on how to solve it, it would be much appreciated.
I get the data from a Web service.

This is a small sample.
It could be improved for more information.
work for you?

Class Education
public class {education
private string ID;
description of the private channel;
private list class ArrayList = new();
Public Education() {}
}

{} public void setId (String id)
This.ID = id;
}

public String getId() {}
return the id;
}

{} public void setDescription (description of the chain)
This.Description = description;
}

public String getDescription() {}
return description;
}

public void setCourses (list of courses of ) {}
This.courses = run;
}

public getCourses() {list
return of the course;
}
}

classroom

public class {course
private string ID;
description of the private channel;
teaching of teaching private;
public Course() {}
}

{} public void setId (String id)
This.ID = id;
}

public String getId() {}
return the id;
}

{} public void setDescription (description of the chain)
This.Description = description;
}

public String getDescription() {}
return description;
}

{} public void setEducation (education)
This.Education = education;
}

Public Education getEducation() {}
return of education;
}
}
Managed Bean

public class {Manage
private list of educations of ;
selectedEducation of teaching private;
selectedCourse of course private;

public Manage() {}
educations = new ArrayList ();
for (int x = 1; x)<= 10="" ;="" x++="" )="">
E education = new Education();
e.setId(""+x);
e.setDescription ("education" + x);
for (int i = 1; i)< 3;="">
Class c = new Course();
c.setId (e.getId () +'.) » + i) ;
c.setDescription (e.getDescription () +": courses"+ i);
e.getCourses () .add (c);
}
This.Educations.Add (e);
}

}
public String actionAdd() {}
Add the code in the event here...
TODO invoke the web service proxy to add courses
Class c = new Course();
c.setId (this.selectedEducation.getId () +'.) (' + (this.selectedEducation.getCourses () .size () + 1));
c.setDescription (this.selectedEducation.getDescription () +": courses"(this.selectedEducation.getCourses () .size () + 1));
this.selectedEducation.getCourses () .add (c);
Returns a null value.
}

public String actionQuit() {}
Add the code in the event here...
TODO invoke the proxy web service to stop the course of education
int index = this.selectedEducation.getCourses () .indexOf (this.selectedCourse);
this.selectedEducation.getCourses () .remove (index);
Returns a null value.
}
public void setEducations (list of educations ) {}
This.Educations = educations;
}

public getEducations() {list
TODO invoke the web service proxy to get educations
return of the educations;
}

{} public void setSelectedEducation (selectedEducation education)
this.selectedEducation = selectedEducation;
}

Public Education getSelectedEducation() {}
Return selectedEducation;
}

{} public void setSelectedCourse (course selectedCourse)
this.selectedCourse = selectedCourse;
}

public class getSelectedCourse() {}
Return selectedCourse;
}
}

JSPX



xmlns:h = "http://java.sun.com/jsf/html".
xmlns:f = "http://java.sun.com/jsf/core".
xmlns:afh = "http://xmlns.oracle.com/adf/faces/html".
xmlns:af = "http://xmlns.oracle.com/adf/faces" >

DOCTYPE system = "http://www.w3.org/TR/html4/loose.dtd".
doctype-public = ""-/ / W3C / / DTD HTML 4.01 Transitional / / IN "/ >"





Content = text/html"; charset = windows-1252 "/ >"








var value = "#{Education.courses}" = "course" rows = "5" "
strips = "row" bandingInterval = "1" >












to = "#{Manage.selectedEducation}" / >





to = "#{Manage.selectedEducation}" / >

to = "#{Manage.selectedCourse}" / >











faces config xml


"- //Sun Microsystems, Inc.//DTD JavaServer Faces 1.1 Config / / IN".
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd" >


manage
com.test.Manage
session


Oracle.ADF.Core

Tags: Java

Similar Questions

  • I have a problem I bought the collection master in 2012 for Mac just got a new computer with Windows 10 and I do not know how to download and install master collection on my new computer, can someone help me?

    I have a problem I bought the collection master in 2012 for Mac just got a new computer with Windows 10 and I do not know how to download and install master collection on my new computer, can someone help me?

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

  • I want to uninstall adobe first pro, but I don't have the serial number... where do I find this number?

    I want to uninstall adobe first pro, but I don't have the serial number... where do I find this number?

    Hello

    Please see the link below.

    It will be useful.

    Quickly find your serial number

    Vinay

  • How to have a dynamic variable name?

    I have a form that determines how many phone numbers, a customer must edit by running a query on the database. The client may have anywhere from 0 to 3 telephone numbers. I guess I can just wrap a CFOUTPUT QUERY tag around my input field so that it will make a loop if there is more than 1. What I don't know is how to dynamically name input field in the CFOUTPUT tag for the UPDATE query I run after the user submits the form.

    For example, if the query is that the user has 2 phone numbers for the table, how can I control their name?

    < name cfinput = ""? "" ... >

    < name cfinput = "?" 2 "... >

    How is it possible dynamically in the cfoutput which returns the result of the query?

    do not make your goal?

  • How to combine the large number of tables of pair key / value in a single table?

    I have a pair key / value tables of 250 + with the following features

    (1) keys are unique within a table but may or may not be unique in the set of tables
    (2) each table has about 2 million lines

    What is the best way to create a single table with all unique key-values of all these paintings? The following two queries work up to about 150 + tables
    with
      t1 as ( select 1 as key, 'a1' as val from dual union all
              select 2 as key, 'a1' as val from dual union all
              select 3 as key, 'a2' as val from dual )
    , t2 as ( select 2 as key, 'b1' as val from dual union all
              select 3 as key, 'b2' as val from dual union all
              select 4 as key, 'b3' as val from dual )
    , t3 as ( select 1 as key, 'c1' as val from dual union all
              select 3 as key, 'c1' as val from dual union all
              select 5 as key, 'c2' as val from dual )
    select coalesce(t1.key, t2.key, t3.key) as key
    ,      max(t1.val) as val1
    ,      max(t2.val) as val2
    ,      max(t3.val) as val3
    from t1
    full join t2 on ( t1.key = t2.key )
    full join t3 on ( t2.key = t3.key )
    group by coalesce(t1.key, t2.key, t3.key)
    /
    
    with
      master as ( select rownum as key from dual connect by level <= 5 )
    , t1 as ( select 1 as key, 'a1' as val from dual union all
              select 2 as key, 'a1' as val from dual union all
              select 3 as key, 'a2' as val from dual )
    , t2 as ( select 2 as key, 'b1' as val from dual union all
              select 3 as key, 'b2' as val from dual union all
              select 4 as key, 'b3' as val from dual )
    , t3 as ( select 1 as key, 'c1' as val from dual union all
              select 3 as key, 'c1' as val from dual union all
              select 5 as key, 'c2' as val from dual )
    select m.key as key
    ,      t1.val as val1
    ,      t2.val as val2
    ,      t3.val as val3
    from master m
    left join t1 on ( t1.key = m.key )
    left join t2 on ( t2.key = m.key )
    left join t3 on ( t3.key = m.key )
    /

    A couple of questions, then a possible solution.

    Why the hell you have 250 + tables pair key / value?

    Why the hell you want to group them in a table containing one row per key?

    You could do a pivot of all the tables, not part. something like:

    with
      t1 as ( select 1 as key, 'a1' as val from dual union all
              select 2 as key, 'a1' as val from dual union all
              select 3 as key, 'a2' as val from dual )
    , t2 as ( select 2 as key, 'b1' as val from dual union all
              select 3 as key, 'b2' as val from dual union all
              select 4 as key, 'b3' as val from dual )
    , t3 as ( select 1 as key, 'c1' as val from dual union all
              select 3 as key, 'c1' as val from dual union all
              select 5 as key, 'c2' as val from dual )
    select key, max(t1val), max(t2val), max(t3val)
    FROM (select key, val t1val, null t2val, null t3val
          from t1
          union all
          select key, null, val, null
          from t2
          union all
          select key, null, null, val
          from t3)
    group by key
    

    If you can do it in a single query, Union all 250 + tables, you don't need to worry about chaining or migration. It may be necessary to do this in a few passes, depending on the resources available on your server. If so, I would be inclined to first create the table, with a larger than normal free percent, making the first game as a right inset and other pass or past as a merger.

    Another solution might be to use the approach above, but limit the range of keys with each pass. So pass we would have a like predicate when the key between 1 and 10 in every branch of the union, pass 2 would have key between 11 and 20, etc. In this way, everything would be straight inserts.

    That said, I'm going back to my second question above, why the hell you want or need to do that? What is the company you want to solve. There could be a much better way to meet the requirement.

    John

  • How to find the name of the table where the paricular column is common to all the tables...

    Hi all

    any help please...

    I have a lot of tables in the diagram

    Select * from tab; show all tables...

    Now, there is a single table called has columns as name like this, dept, empno, joindate, sal...
    now the description column in table present in so many other tables in the schema above...

    How can I know the names of tables where this 'Description' column shows.

    Note: I use the 10 g version and I do not have DBA privilege on the diagram...

    Thanks in advance
    ASP.

    Are you logged in as owner of these tables? Otherwise (and it seems that you're not), you have privileges on these table? If you do, use:

    SELECT  OWNER,
            TABLE_NAME
      FROM  ALL_TAB_COLUMNS
      WHERE COLUMN_NAME = 'DESIGNATION'
    / 
    

    If you don't have privileges, but you can choose from DBA_TAB_COLUMNS, use:

    SELECT  OWNER,
            TABLE_NAME
      FROM  DBA_TAB_COLUMNS
      WHERE COLUMN_NAME = 'DESIGNATION'
    / 
    

    Otherwise ask your DBA to run it.

    SY.

  • How to include the total number of table one fact in another fact table to calculate the percentage

    I have a fact table in the grain of each document created in any organization, say the 1st table of facts. I have another table of facts (2nd fact table) seen those documents which are considered by different commentators. grain of this second fact table is so each review, even if I document in both IDs the fact table.

    Now, I want to calculate the percentage return documents reviewed. For this I need to divide count separate from the document of performance by the total performance document. Now this document of total performance can be obtained from the 1st table of facts, but I don't get how to bring this indictment in the 2nd table of facts to show the percentage.

    Please let me know if there is no ambiguity in my question, because I'm a starter in OBIEE.

    Thank you very much.

    then you can set new logical column with two columns of fact in the formula

  • I have a column of the table where I want to apply box, what is the best approach?

    Mr President.

    My worm jdev is 12 c. (12.0.3.0)

    I have a table column and want to default on every insert I have check box selected.

    "DED_WHT" VARCHAR2(1) DEFAULT 'Y', 

    How to apply?

    Concerning

    Drop the DedWht attribute of the DataControl and select ADF select Boolean Checkbox

    When the following dialog box appears, choose selected state value of Y:

    Finally, go to the display attribute and the literal value for Y:

  • I have a dell, I used to install new hardrive can I format first and how

    the hard disk that is in there a lot of virus

    Hi archiemote,
     
    -You want to change your hard drive or to format the existing hard drive?
     
    Try to run a scan on your computer and check if it helps fix the problem. You can try Microsoft Safety Scanner to do the same.
     
    See if that helps. If it does not, follow the steps listed in the article given below to partition and format the drive.
     
  • How to create a table, where the visitor can navigate by selecting the column they want to see results for in alphabetical order?

    First of all, I would like to know the name of this type of table.

    ex.

    Name of the song. Artist | Album | Date | Quality | Etc.

    Select the one you want to see less to higher value, select again to see bigger less valuable.

    SortTable: make all your tables sortable

    or with jquery

    jQuery Table sorting | The Plugin stupid table by JoeQuery

  • I bought photoshop and have a serial number, but not where to put! Help! There isn't anywhere to contact adobe in this matter.

    -

    Joel,

    Please download the application from the link below:

    Photoshop elements help | Download Photoshop Elements | 10, 11, 12, 13

  • How to convert a paralytic to a VAPP model so it can be added to a catalog

    I have a workflow creates a TIME based on a template, the workflow then updates the applications in the vApp and cancels the vApp. Now I need to publish this TIME was updated to a new catalog, how can I do? Seems to add it to the workflow catalog needs a role model not a paralytic.

    I figured this out on my own:

    just need to two following workflows:

    capture a vapp

    Add a catalog article

  • Which is the table where new areas created from screen Designer are stored in?

    Hello

    When we create fields in the screen designer throug the button 'Create a new field', which table are they stored in?

    Thank you very much.

    The field definitions are stored in SU_FIELD.

  • The Adobe Suite 4 Design Premium is available for download for windows PC? I have difficulties to find it for purchase. I tried to download the links on product Creative Suite CS4 help/download page. I do not understand how to provide a serial number

    The Adobe Suite 4 Design Premium is available for download for windows PC? I have difficulties to find it for purchase. I tried to download the links on product Creative Suite CS4 help/download page. I do not understand how to provide a serial number for a product that I can not download.

    No, you can not buy CS4, only CS6 - Link to buy CS6 via phone http://www.adobe.com/products/cs6.html

    If you already HAVE a serial number CS4, kglad links in response #1 here can help https://forums.adobe.com/thread/2017859

  • How to create a large group of tables of all different lengths

    Hi all

    I want to create a 2D array that has two coloums and X number of rows (possibly in the hundreds). The first coloum must have a calculated average for this line. The second coloum should have a gap with the average assosiated. I struggle to get to this point. I know how to aqquire the set of values that should be considered for each mean and STD and I also know how to calculate the average and std.

    A loop will tell me what is the value of tag and which line in X put in. I want to be able to have the X number of tables each representing a row with values before calculating the avg and std. Each table would be of a different duration.

    I don't know how tag on the unique values of the loop to the appropriate line to create the Group of X tables.

    The only way I can think to do is the initialization of a 2D table large exessvly and replacing the first available null in the row with the value form the loop. Then only, I wouldn't consider zeros when I do the final 2D picture. What I don't love about it, is that it would be exesive and it is possible that there wouldn't be enough zeros for all the values that I wanted to consider in a specific line.

    I do not want to calculate averages and STDS for every line, every time I have add a value from the loop either. That would allow me to pass the table groups but would also slow the program. Can someone give me some advice on how to run this? Thank you in advance!

    MechaCool

    Use a cluster.  In your case, the cluster contains a data table and two digital inputs for the mean and std dev.  Look at the joint.  I created a control of Type Def the type of data I think you want.  In vi, you can see how to use the cluster to write your data.  For multiple series of data, you would have a picture of this cluster.  Each could have an array of different lengths and his averages dev partners and STDS.

Maybe you are looking for