use of com.vaadin.flow.uitest.ui.CompositeView.NameField in project flow by vaadin.
the class CompositeNestedView method initContent.
@Override
protected Div initContent() {
Div div = new Div();
nameField = new NameField();
nameField.setId(NAME_FIELD_ID);
Div name = new Div();
name.setText("Name on server: " + nameField.getName());
name.setId(NAME_ID);
nameField.addNameChangeListener(e -> {
name.setText("Name on server: " + nameField.getName());
});
div.add(name, nameField);
return div;
}