|
Re: Validation Service [message #727639 is a reply to message #727617] |
Wed, 21 September 2011 18:20 |
Konstantin Komissarchik Messages: 1077 Registered: July 2009 |
Senior Member |
|
|
There is an open enhancement request for 0.4 that tracks allowing ValidationService at model element level.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=329076
In this particular case, I would recommend attaching ValidationService to the individual properties as that will give you validation markers on the actual properties. Keep in mind that a ValidationService for a property can reference other properties as part of its validation logic. Just make sure to use @DependsOn annotation to mark the properties that validation is consuming or validation will not refresh when appropriate.
@Service( impl = PropAValidationService.class )
@DependsOn( { "PropB", "PropC" } )
...
@Service( impl = PropBValidationService.class )
@DependsOn( { "PropA", "PropC" } )
...
@Service( impl = PropCValidationService.class )
@DependsOn( { "PropA", "PropB" } )
- Konstantin
[Updated on: Wed, 21 September 2011 18:20] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04595 seconds