Empty TextField - Vaadin 14

Hello,
I want create an object by clicking on a button. In this case the TextField (which gives the name etc for the object) needs to have a value. If you press the button all TextFields which are empty should give a error message. I worked with textField.setRequired(true); but this will only gives an error when you have selected the TextField before. So when I click the button to add there wont be any error or something. The error message will only appear when you selected the Field before.
Does anyone know how to change this? I want to let the error appear also when I havent selected the TextField before.

Greets
Jan

Your problem seems to be that you create and bind a new TextField after already having set (or read) the bean in the binder. Try to call binder.setBean(binder.getBean()); (or binder.readBean(bean); in buffered mode) after creating and binding the new TextField.