Fixed
Details
Assignee
UnassignedUnassignedReporter
jasonjjasonjParticipants
Hardy FerentschikjasonjComponents
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
jasonj
jasonjParticipants
Hardy Ferentschik
jasonj
Components
Affects versions
Priority
Created October 14, 2010 at 7:27 AM
Updated August 5, 2011 at 5:57 PM
Resolved August 5, 2011 at 5:57 PM
In Oval, there is a "when" attribute in each ConstrainsChecker,which can be used for conditional check.
In the following example fieldB must not be null only if fieldA is not null as well. With the prefix groovy: it is indicated that the formula is expressed in the Groovy language.
Although we can use ScriptAssert as a work-around, but ScriptAssert can't be used at property level validation, and the "when" attribute make the validation logical more clearly.
In UI layer validation, this feature is very important in instant UI validation.
The hibernate validator should have the ability to pass a ValueContext to the Validator,then we can write a custom Contrains to implement this feature.