Hi Robert Hecht, how do you configure cascaded validation in XML? Here is an example:
<constraint-mappings
xmlns="http:
xmlns:xsi="http:
xsi:schemaLocation=
"http:>
<default-package>org.hibernate.validator.internal.xml</default-package>
<bean class="org.hibernate.validator.test.internal.xml.System" ignore-annotations="true">
<getter name="parts">
<valid/>
</getter>
</bean>
<bean class="org.hibernate.validator.test.internal.xml.Part" ignore-annotations="false"/>
</constraint-mappings>
Note the dedicated <valid/> node for cascaded constraints. Any chance you are using something like:
<constraint annotation="javax.validation.Valid"/>
?
That would explain the error you are seeing. Using <valid/> everything should just work.
|