struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad A Cupit" <>
Subject RE: Struts2.1: Is Validation Annotations on Nested Objects Supported?
Date Fri, 25 Apr 2008 15:09:01 GMT
Jeromy Evans wrote:
> by nature of the way proxies are created, the don't carry
> the method annotations of the proxied implementation.  

This is true, the methods on the proxy will not be annotated, but Struts 2 does search super
classes for those annotations. Since proxies generated by CGLIB extend the class they proxy,
S2 will pick up those validation annotations on the super class methods.

So, in short, annotation validation does work when proxies are involved.

Jeromy is also right that there is a bug for @SkipValidation not working with proxies. Here's
the link:

Brad Cupit
Louisiana State University - UIS
View raw message