vaadin / vaadin/framework

BeanBinder bean validation groups support

Open
#8,385 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

candidate enhancement needs design
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

@Artur- commented on Wed Aug 03 2016

// Constraint defined for the default group
@Size(min = 3, groups = FrontendValidation.class)
private String title;

// Constraint defined for a specific group
@NotEmpty
private String name;
binder.setConstraintGroups(
  FrontendValidation.class,
  javax.validation.groups.Default.class);

@pleku commented on Tue Oct 11 2016

SHOULD HAVE, but not necessary for FW8.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at BeanBinder, the entry point named by the issue, and trace its bean-validation configuration. Use the shown setConstraintGroups(...) calls and constraint examples as acceptance criteria; done means constraints in the selected groups are honored.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.