I want to make an application compeletly like Hello World app in vaadin.start but with this change : when I click on the button I want to write a paragraph instead of showing notification.
in other word I want to use my textfield value immidiatley by saving it as string, I could not do it with textfield.getValue(); it returns me null value either in focused on textfield or outside.
TextFields can have different ValueChangeModes
, per default it is ValueChangeMode.ON_CHANGE
.
Try setting yours to EAGER
with textfield.setValueChangeMode(ValueChangeMode.EAGER);