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

Chapter 7. Working with Forms

In this chapter, we will cover:

  • Creating a simple form
  • Generating fields from a bean
  • Binding fields to a bean
  • Using field validation
  • Using bean validation
  • Creating a custom validation
  • Creating a CRUD form
  • Filtering items using ComboBox

Introduction

Forms are used for collecting requests from users of a website. We'll learn how to create various forms with different fields. We'll start with creating a simple login form. Then we'll show how to create a form very quickly and easily by generating fields from a bean. Validation of the user input is very important in each application. In Vaadin, we can check values on the fields, we can use JSR-303 (Java Specification Request) validation, or we can create our own custom validator. ...

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