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

Creating a CRUD form

CRUD is also known as create, read, update, and delete, which are four basic functions of storage. These methods are used by many user interfaces. We will create a form that is based on this concept. Data will be stored in a table. Adding and updating data will be implemented through a pop-up window with the form.

Creating a CRUD form

How to do it...

Carry out the following steps to create a CRUD form:

  1. Create a Vaadin project with a main UI class called Demo.
    public class Demo extends UI {…}
  2. We start with the bean. This bean is for Product that has attributes code, name, and price. In each attribute, we add validation constrains.
    public class Product ...

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