This content has been marked as final.
Show 1 reply
-
1. Re: Marshalling JSR-303 classes
jfuerth Aug 17, 2012 12:46 PM (in response to ddcracauer)Hi David,
Since Bean Validation is available on both the client and the server, you could make new instances of ConstraintViolation by sending the (potentially invalid) bean graph across the wire, and then running validation on the other side. Typically you'd want to do this anway, since client-side validation is nice and fast, but since we can never really trust that the client has not been tampered with, we need to validate again on the server side for safety.
I know this isn't actually an answer to the question you asked, but maybe it's helpful.
-Jonathan