title: Binding One:Many data to component in Vaadin
body: <p>My question regards binding components to data in Vaadin. <strong>It is</strong> possible to bind nested properties when you have bean with 1:1 relationship using addnestedpcontainerproperty.</p>
  
  <p><strong>Is it</strong> possible to bind property with One:Many relationship. For example having java class</p>
  
  <pre><code>public class User {
  
     private String name;
     private Map&lt;String, String&gt; prop;
  
     public User() { ... } 
  
     public addProp(String column, String value) {
  
        prop.put(column, value);
     }
  
  }
  
  
  
  public class Users {
  
     private List&lt;User&gt; users;
  }
  </code></pre>
  
  <p>I would like to display Users as a table, for example: each User object from Users list as row, prop map's keys as table columns, and map's values as cells.</p>
  
  <pre><code>public class Users {
     private List&lt;User&gt; users; 
     public Users() {
  
  
         User user1 = new User("first user");
         user1.addProp("p1", "val_b_1");
         user1.addProp("p2", "val_b_2");
  
         User user2 = new User("second_user");
         user2.addProp("p1", "val_a_1");
         user2.addProp("p2", "val_a_2");
  
         users = new HashMap;
         users.add(user1);
         users.add(user2);
     }
  }
  </code></pre>
  
  <p>I would like this to be displayed as</p>
  
  <pre><code>|     p1   |    p2    | 
  ----------------------
  |  val_b_1 | val_b_2  |
  |  val_a_1 | val_a_2  |
  </code></pre>
  
  <p>Assumption is that each user in User's list will have the same values as keys. So the number of columns is always the (for each user in user list, for different list of user it may differ)</p>