private bool IsMatchingControl(ValidationFailure failure, BusinessObjectBoundEditableWebControl bocControl) { if (!bocControl.HasValidBinding) { return(false); } //if (failure.GetValidatedInstance != bocControl.DataSource.BusinessObject) // return false; return(false); }
private bool IsMatchingControl(ValidationFailure failure, BusinessObjectBoundEditableWebControl bocControl) { if (!bocControl.HasValidBinding) { return(false); } //if (failure.GetValidatedInstance != bocControl.DataSource.BusinessObject) // return false; if (failure.PropertyName == bocControl.PropertyIdentifier) { return(true); } if (GetShortPropertyName(failure) == bocControl.PropertyIdentifier) { return(true); } return(false); }