-
1. Re: Errai bean validation - @Valid
csa May 21, 2014 11:51 AM (in response to michael_jank)Hi Micheal,
Did you inherit Errai's bean validation module?
This will make sure that bindable proxies are unwrapped before validation and also makes validators injectable (optional).
I've created a test for list validation here:
Can you see a difference to what you're doing? Which version of Errai are you using?
Cheers,
Christian
-
2. Re: Errai bean validation - @Valid
csa May 21, 2014 1:58 PM (in response to csa)Hi again,
I found the problem now (given you do in fact inherit our validation module). The problem occurs when your list contains bindable proxies. You can confirm that by checking dataList.get(0).getClass() in your debugger.
I've created a JIRA for this:
https://issues.jboss.org/browse/ERRAI-745
Cheers,
Christian
-
3. Re: Errai bean validation - @Valid
csa May 21, 2014 7:12 PM (in response to csa)OK, this should work now using the latest 3.0-SNAPSHOT of errai-data-binding.
Cheers,
Christian
-
4. Re: Errai bean validation - @Valid
michael_jank May 22, 2014 5:23 AM (in response to csa)Hi Christian,
thanks for your quick responses and your fix - I just tested the snapshot and it works fine for me now!
Sorry, I forgot to mention that I use 3.0-SNAPSHOT, and the inheritation of the validation module.
Cheers,
Michael