Bean Validation (JSR-303) support
I am working on a strategy for my current project to integrate my Java and Flex domain model in an efficient manner.
I was wondering whether there is a feature planned or if somebody implemented a solution that would provide support for using Bean Validation (JSR-303) annotations on the server-side and in your Flex client. I guess this technically boils down to 3 scenarios (any combination of those possible):
1) Pure bean validation support on the Flex client (aka Hibernate Validator as an ActionScript implementation) - It looks like GraniteDS has something that goes into the direction: http://www.graniteds.org/confluence/...+%28JSR-303%29
2) Model objects are validated on the server-side: How to pass back those validation errors in a "best-practice" way. (Which also integrates with Flex' validation support (?))
3) Generating Flex ActionScript model objects from the Java domain model that also generate the bean validation support. E.g. I am using the DTO2FX Eclipse plugin from the Clear Toolkit project (http://sourceforge.net/projects/cleartoolkit) (but that one does not support generating Bean Validation code.
Thus, how have you handled validation in your Flex/BlazeDS/Spring applications? Did you even bother dealing with JSR-303 Bean Validation or just manually duplicated the logic?
Is this something, where Spring Flex or Spring ActionScript could provide better support in the future?
The "Spring Roo Flex Add-on" seems to already support some of this:
Can this be used outside of Roo?