Hi, I was trying to add cells to a Vaadin Table as the following code snippet
Table table = new Table();
for (int i = 1; i < 10; i++) {
Integer col1 = new Integer(i);
String col2 = "uri"+col1;
Object[] cells = new Object[]
{col1,col2};
table.addItem(cells , cells.hashCode() );
table.commit();
}
Iterator<?> it = table.getItemIds().iterator();
while(it.hasNext()) {
System.out.println(it.next());
}
but the table seems empty. Do I miss anything or is there maybe a bug?
Cheers,
Toby