Problem updating table

The following code is supposed to render a table which gets filled by pressing the ‘add’ button multiple times.


package com.example;

import com.vaadin.Application;
import com.vaadin.ui.Button;
import com.vaadin.ui.Label;
import com.vaadin.ui.Table;
import com.vaadin.ui.Window;

public class PushTestSimple extends Application {

	//private ICEPush pusher = new ICEPush();

	private Table table;

	@Override
	public void init() {
		Window mainWindow = new Window("Application");
		setMainWindow(mainWindow);

		mainWindow.addComponent(new Button("Add",
				new Button.ClickListener() {

					private int counter = 0;

					public void buttonClick(Button.ClickEvent event) {
						int index = counter++;
						table.addItem(new Object[] { Integer.toString(index) },
								new Integer(index));
					}
				}));
		table = new Table();
		table.addContainerProperty("Text", Label.class, null);
		mainWindow.addComponent(table);
	}

}

The problem is that it only works for items till the view is full in the browser. The items get added on the serverside but the view in the browser does not get updated.
This happens in both firefox and chrome.
I use Vaadin 6.7.1

edit:made code more essential. Not using any push

I tried in 6.6.8 and it works. In 6.7.2 nightly it doesn’t so please file a ticket in
http://dev.vaadin.com/
. If there’s not one already.