title: Vaadin - generate table dynamically
body: <p>I have a Vaadin application. One of it's components is a table. I need a possibility to add as many columns as the user wants (well, let's say max. 20 at the moment) to that table. At the beginning, there are 5 colums, so in fact the user can add column 6 - 20.
  However, after doing "layout.addComponent(...)", this table is not editable any more.</p>
  
  <p>I tried 2 things: </p>
  
  <ol>
  <li><p>There is a variable which stores the current number of rows and is increased by 1 for every click on an "add" button. With every click, 1 column is added to the table.</p></li>
  <li><p>Another idea was to hold the columns numbers in a variable (like idea 1) and the value of the cells somewhere in a Collection (whatever). After click on the "add" button, the whole table is removed, then all columns are added (all that have been there + a new one) and it is added to the layout.</p></li>
  </ol>
  
  <p>However, none of these ideas works.</p>
  
  <p>Any suggestions? </p>