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

Generating fields from a bean

In some situations, we need to create a form very quickly. For example, when we are creating a proof of concept, a prototype of an application, or when we need only a simple form and we don't want to spend a lot of time on UI work. In those cases, we don't need to create each field, but we can generate them through the Java Bean. It's quick and easy. In this recipe, we will see how to generate a simple form for the Bean Product. Our generated form will look like the following screenshot:

Generating fields from a bean

How to do it...

Carry out the following steps to generate a form from the Java Bean:

  1. Create a Vaadin project with a main UI class called ...

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