@@ -0,0 +1,1505 @@
+package com.itmill.toolkit.tests.tickets;%0D%0A%0D%0Aimport com.itmill.toolkit.Application;%0D%0Aimport com.itmill.toolkit.data.Item;%0D%0Aimport com.itmill.toolkit.ui.Button;%0D%0Aimport com.itmill.toolkit.ui.Component;%0D%0Aimport com.itmill.toolkit.ui.DateField;%0D%0Aimport com.itmill.toolkit.ui.GridLayout;%0D%0Aimport com.itmill.toolkit.ui.Label;%0D%0Aimport com.itmill.toolkit.ui.Table;%0D%0Aimport com.itmill.toolkit.ui.TextField;%0D%0Aimport com.itmill.toolkit.ui.Window;%0D%0A%0D%0Apublic class Ticket2051 extends Application %7B%0D%0A%0D%0A    private static final Object P1 = new Object();%0D%0A    private static final Object P2 = new Object();%0D%0A%0D%0A    public void init() %7B%0D%0A        Window w = new Window(getClass().getSimpleName());%0D%0A        setMainWindow(w);%0D%0A        // setTheme(%22tests-tickets%22);%0D%0A        GridLayout layout = new GridLayout(10, 10);%0D%0A        w.setLayout(layout);%0D%0A        createUI(layout);%0D%0A    %7D%0D%0A%0D%0A    private void createUI(GridLayout layout) %7B%0D%0A        Table t = new Table(%22This is a table%22);%0D%0A        t.addContainerProperty(P1, Component.class, null);%0D%0A        t.addContainerProperty(P2, Component.class, null);%0D%0A        t.setColumnHeaders(new String%5B%5D %7B %22Col1%22, %22Col2%22 %7D);%0D%0A%0D%0A        Item i = t.addItem(%221%22);%0D%0A        i.getItemProperty(P1).setValue(new TextField(%22abc%22));%0D%0A        i.getItemProperty(P2).setValue(new Label(%22label%22));%0D%0A        Item i2 = t.addItem(%222%22);%0D%0A        i2.getItemProperty(P1).setValue(new Button(%22def%22));%0D%0A        i2.getItemProperty(P2).setValue(new DateField());%0D%0A%0D%0A        layout.addComponent(t);%0D%0A    %7D%0D%0A%7D%0D%0A

Test case for #2051