PVG
02-26-2007, 02:29 PM
Hi,
I want to use the Validator framework for validating my business objects.
I have the following situation. A class myClassA has a collection of myClassB objects. Is it possible, using the out of the box validator and validator groups, to define a validator that validates all of the entries in the myClassB collection on the object of classA.
I know there is the possibility to have validator references, but I have the impression that this is only usefull for one-to-one object relationships and not one-to-many relations like I have.
How would I best do this? Writing a custom Validator is off course always possible. This validator would then take a navigationexpression to get to the collection of objects and would refer to a validator group. This validator group contains then the validators that must be executed.
Any information or feedback is always welcome.
KR
Patrick
I want to use the Validator framework for validating my business objects.
I have the following situation. A class myClassA has a collection of myClassB objects. Is it possible, using the out of the box validator and validator groups, to define a validator that validates all of the entries in the myClassB collection on the object of classA.
I know there is the possibility to have validator references, but I have the impression that this is only usefull for one-to-one object relationships and not one-to-many relations like I have.
How would I best do this? Writing a custom Validator is off course always possible. This validator would then take a navigationexpression to get to the collection of objects and would refer to a validator group. This validator group contains then the validators that must be executed.
Any information or feedback is always welcome.
KR
Patrick