vaadin / framework

Vaadin 6, 7, 8 is a Java framework for modern Java web applications.
http://vaadin.com/
Other
1.78k stars 729 forks source link

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

Open Legioth opened 7 years ago

Legioth commented 7 years ago

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.

elmot commented 7 years ago

When implemented, please update @deprectated in: com.vaadin.v7.data.validator.NullValidator

stale[bot] commented 6 years ago

Hello there!

It looks like this issue hasn't progressed lately. There are so many issues that we just can't deal them all within a reasonable timeframe.

There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):

Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too!

jorndp commented 4 years ago

Hi,

I still have a usecase for this issue :

I have 1 Textfield binded with an EmailValidator. The email is not mandatory so user should leave it either empty or a validated result from the EmailValidator.

Some flag that null or empty is allowed would be very efficient for such use case.

Regards, Jorn