i am having the problem with the dynamic text fields. i am having a table which contain dynamic textfield in each row. each row can have 1 or more than one text fileds. by clicking the add link they can add those fields. now i am having the problem to get the value from textfield it should match with the row information.
expected table
        table 1
        ---------*----------*|
        ID       | Name      |
        1        | la        |
        2        | lalal     |
        3        |lala       |
        4        |lala       |
    table 2 
    ---------*----------*|
    ID       | code      |
    1        | 56        |
    1        | 66        | 
    2        | 69        |
    2        | 96        |
    3        | 89        |
    4        |  22       |
this should be done when i click submit button. but currently i am getting ID 4 for everything. how can i define the row with these fields.
