Add listener to LoginForm textfields?

i’ve found the description in Book of Vaadin to create my own LoginForm, but is it possible to add a listener to the fields in LoginForm?

As example for remove any messages if i type in text?


If you’re talking about a ClickListener, the only way I’ve found to do that is to use the CustomField addon. Create an internal layout, add the single field type you want to check for clicks to the layout, and set the composition root of the CustomField to the layout: setCompositionRoot(internalLayout);

You can add a LayoutClickListener to the internal layout.

You will have to override some methods (e.g. getValue()) so that when the form or other object interacts with the custom field, it gets the value of the textfield.