Docs

Documentation versions (currently viewingVaadin 25)
Documentation translations (currently viewingEnglish)

Forms & Data

Learn how to create forms and manage data in Vaadin applications.

Most business applications revolve around data. Users look it up in grids, edit it in forms, and expect their changes to be saved. These guides show how to do this in a Vaadin application.

For the user interface, start with Add a Form and Add a Grid. To store the data, see Persistence, and Replace H2 for switching to a production database. The other guides cover custom fields, file uploads and downloads, and PDF reports.

The forms and grids load and save data through application services. The Data Consistency deep dive explains the reasoning behind this, and covers transactions, locking, and validation.

Topics

Add a Form
Learn how to add a form to a Vaadin application.
Add a Custom Field
Learn how to create a Custom Field in Vaadin.
Add a Grid
Learn how to add a data grid to a Vaadin view.
Persistence
How to choose and combine persistence strategies in Vaadin applications.
Handle File Uploads
Learn how to receive uploaded files, process them with a service, and handle errors.
Handle File Downloads
Learn how to serve file downloads from a Vaadin application.
Generate PDF Reports
Learn how to generate PDF reports and embed them in a Vaadin view.
Consistency
How to ensure data consistency in your applications.