O'Reilly logo

Vaadin 7 Cookbook by Ondrej Kvasnovsky, Jaroslav Holan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Responding immediately to an event in TextArea

It is very useful when surrounding components immediately respond to user input. For example, we can notify the user that the text in the editor has been changed. We will create a simple text area and button for saving. The button is enabled only if the value in the text area was changed as shown in the following screenshot:

Responding immediately to an event in TextArea

How to do it...

Carry out the following steps to create a TextArea that will immediately send an event respond:

  1. We create a Vaadin project with a main UI class named Demo as follows:
    public class Demo extends UI {…}
  2. We insert our text area and button to the VerticalLayout class. We start ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required