vaadin / vaadin/framework

Allow setting a "global" null representation that skips other converters and validators in the chain

Open
#8,465 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It would be useful to have a feature similar to the current withNullRepresentation that would instead bypass all intermediate converters and validators if null is encountered from the model side or if the null representation value is encountered from the presentation side. In this way, it wouldn't be necessary to ensure that those intermediate steps also work with null values.

Spun of from #8321.

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 by reading the existing withNullRepresentation behavior and the discussion in issue #8321. Trace how converters and validators handle null from both the model and presentation sides, then define and test a global null representation that bypasses intermediate steps in both directions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.