[ 
https://issues.apache.org/jira/browse/WICKET-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13903878#comment-13903878
 ] 

Martin Grigorov commented on WICKET-5506:
-----------------------------------------

[~ivaynberg] This sounds correct but I have never read the JSR303 spec... 
Should I change it ?

> DefaultPropertyResolver should resolve the Property according to the getter 
> first
> ---------------------------------------------------------------------------------
>
>                 Key: WICKET-5506
>                 URL: https://issues.apache.org/jira/browse/WICKET-5506
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-bean-validation
>    Affects Versions: 6.13.0
>         Environment: 
>            Reporter: Vincent MATHON
>            Assignee: Igor Vaynberg
>            Priority: Minor
>
> A domain model model2 may extend a domain model model1 and have JSR303 
> annotations on one or more getter to override constraints. In such a case, 
> DefaultPropertyResolver cannot detect the right domain model implementation 
> since direct property analysis is done first. Indeed, with the current 
> implementation, if a property is declared in model1 and the getter is 
> overriden in model2, model1 is systematically  affected as the property class 
> owner although model2 is the actual implementation associated with the Wicket 
> model. As a consequence, some constraints validations may never been thrown.
> Swapping direct property analysis and getter analysis solves this problem.
> Workaround: providing my own property resolver.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to