forms-and-validation

Bind Vaadin 25 UI fields to Java beans with Binder validation.

11|3|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/vaadin/claude-plugin --skill forms-and-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forms-and-validation
Source: https://github.com/vaadin/claude-plugin/tree/main/skills/forms-and-validation
Command: npx skills add https://github.com/vaadin/claude-plugin --skill forms-and-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Vaadin 25 form handling often requires boilerplate code to bind fields to a data model, perform validation, and handle submission. This skill provides a structured approach using Binder and BeanValidationBinder to ensure robust, maintainable forms.

Core Features & Use Cases

  • Explicit field binding with binder.forField() or binder.bind() to bind UI components to a Java bean.
  • Validation layers including required fields, per-field validators, converters, and cross-field binder-level validation.
  • Support for both buffered and write-through modes, error display, and easy reuse in common form scenarios (create, edit, filter).

Quick Start

Create a Binder-based form by binding fields to a bean and performing readBean to load data, then writeBeanIfValid on submit.

Frequently Asked Questions about forms-and-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bind UI fields to a data object in Vaadin 25 forms?

To bind UI fields to a data object in Vaadin 25 forms, use the Binder API with binder.forField() or binder.bind() to connect components directly to a Java bean, simplifying form state management.

How do I perform cross-field validation in a Vaadin Binder?

Cross-field validation in a Vaadin Binder is performed using binder-level validators that check dependencies between multiple fields, ensuring overall form consistency beyond individual field-level checks.

How do I load and save data using a Vaadin Binder form?

To load and save data using a Vaadin Binder form, call readBean to populate the UI fields for editing, then call writeBeanIfValid on submit to save changes back to the data object if validation passes.

How do converters work with Vaadin form validation?

Converters in Vaadin form validation transform user input between UI component types and backend data model types, ensuring data integrity before validators execute and the binder writes values.