> i've compiled castle validation from the Castle-Core-3.2.2 source code,
> and when I try to set a custom error message on the ValidateLength
> attribute it is being ignored.
>
As a quick fix I've added the following code to the top of the
BuildErrorMessage method at line 200 in LengthValidator.cs
if (ErrorMessage != null) //hack to fix bug where custom
message is ignored
{
return ErrorMessage;
}
I don't have the time to look into this thoroughly so I've no idea whether
this is the correct thing to do.
Anyway, I hope this helps someone.
--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/d/optout.