@@ -0,0 +1,1605 @@
+package com.vaadin.tests.components.table;%0A%0Aimport com.vaadin.tests.components.TestBase;%0Aimport com.vaadin.ui.Button;%0Aimport com.vaadin.ui.Button.ClickEvent;%0Aimport com.vaadin.ui.Label;%0Aimport com.vaadin.ui.Table;%0Aimport com.vaadin.ui.TextField;%0Aimport com.vaadin.ui.VerticalLayout;%0A%0Apublic class TextFieldValueGoesMissing extends TestBase %7B%0A%0A    @Override%0A    protected void setup() %7B%0A        final VerticalLayout verticalLayout = new VerticalLayout();%0A%0A        final Label label1 = new Label(%221%22);%0A        final Label label2 = new Label(%222%22);%0A%0A        Button button = new Button(%22Refresh%22);%0A        button.addListener(new Button.ClickListener() %7B%0A%0A            public void buttonClick(ClickEvent event) %7B%0A                verticalLayout.replaceComponent(label1, label2);%0A            %7D%0A        %7D);%0A        verticalLayout.addComponent(button);%0A        verticalLayout.addComponent(label1);%0A%0A        Table table = new Table();%0A        table.addContainerProperty(%22Field%22, TextField.class, null);%0A        Object id = table.addItem();%0A        TextField tf = new TextField();%0A        table.getItem(id).getItemProperty(%22Field%22).setValue(tf);%0A%0A        verticalLayout.addComponent(table);%0A%0A        addComponent(verticalLayout);%0A%0A    %7D%0A%0A    @Override%0A    protected String getDescription() %7B%0A        return %22Enter a text in the TextField in the table and press the 'replace label' button. This replaces the label which is in the same layout as the table but should not cause the TextField in the table to lose its contents%22;%0A    %7D%0A%0A    @Override%0A    protected Integer getTicketNumber() %7B%0A        return 6902;%0A    %7D%0A%0A%7D%0A

Test for #6902