Hi,

I think it’s a mix. The code is based on proposition 2 (see http://beanvalidation.org/proposals/BVAL-214/#proposition-2). But at the end the difference to the API of proposition 1 is quite small. See this Gist for a small refactoring that looks more like the API f proposition 1: https://gist.github.com/hendrikebbers/3a4fb58c5384638b6b34affe3b6b0228
At the end I think that the name „ValidatedValues“ is wrong if we do it this way since an instance describe values that should be validated in future ;)

Cheers,

Hendrik


Am 19.10.2016 um 14:25 schrieb Gunnar Morling <gunnar@hibernate.org>:

Hi Hendrik,

Thanks, having such test bed will be very useful!

Adding some association to the model (a plain reference or a collection annotated with @Valid) would be a great addition so we can use it to explore cascaded validation, too.

One question: this does not address the actual issue of BVAL-214 - which is the validation of class-level constraints in the course of validateValues() - yet, right? I.e. in its current form, this is essentially taking the existing validateValue() and exposes it in a form more easily digestable for the purposes of UI validation, right?

--Gunnar




2016-10-12 8:45 GMT+02:00 Hendrik Ebbers <hendrik.ebbers@me.com>:
Hi all,

I created a small JavaFX as a playground for proposal BVAL-214. I already added a dummy implementation for my idea (see http://beanvalidation.org/proposals/BVAL-214/#proposition-2).
You can find the sources here: https://github.com/guigarage/BeanValidationForUI

I added a dummy implementation for the validation API and the sample can simply be started by the com.guigarage.validation.Demo class
I will add some doc later to describe my ideas.

Cheers,

Hendrik



_______________________________________________
beanvalidation-dev mailing list
beanvalidation-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/beanvalidation-dev

_______________________________________________
beanvalidation-dev mailing list
beanvalidation-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/beanvalidation-dev