Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343677

Summary: Surface element property validation in with directive presentation
Product: z_Archived Reporter: Ling Hao <ling.hao>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: konstantin
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Ling Hao CLA 2011-04-22 21:02:05 EDT
Error validation for ElementProperty does not appear. 

In Sapphire sample -> IContact -> PrimaryOccupation ElementProperty, add a Service annotation which extends ModelPropertyValidationService.
Comment 1 Konstantin Komissarchik CLA 2011-04-25 15:51:44 EDT
Could you clarify where you would expect the validation to be surfaced in this scenario?
Comment 2 Ling Hao CLA 2011-04-25 17:18:32 EDT
Validation can be next to the radio button group. There are instances in which "none" is not valid.
Comment 3 Konstantin Komissarchik CLA 2011-04-26 01:34:06 EDT
Enhancement implemented. Please verify. 

Element property validation will now be shown next to controls presented by the with directive. Use @Service annotation to attach an impl of ModelPropertyValidationService or @Required to easily flag the case where the child element must exist.
Comment 4 Ling Hao CLA 2011-04-26 15:04:52 EDT
Verify validations appeared.
Verify @Required and @Service annotations working as expected