Hi there, 
        
The issue COMP-ISSUE-87 was just created by Mats (cliffhanger).
        
        Key: COMP-ISSUE-87
        Summary: exception when trying to validate an inherited base object
        Type: Bug
        Importance: High
        
        Description:
        I get an exception when trying to validate an object that inherits 
from a base object with attribute validators: 
"No public instance field or property named pass1 for type 
Implementation.CustomUser " 
I'm using vs2008 with .NET FWK 3.5sp1 with Castle.Components.Validator.dll 
v1.0.3.4333.
How to recreate:
Default.aspx 
    protected void SaveUserButton_Click(object sender, EventArgs e) 
    { 
        var u = new CustomUser() 
                    { 
                        pass1 = pass1.Text, 
                        pass2 = pass2.Text 
                    }; 
        var vr = new ValidatorRunner(new CachedValidationRegistry()); 
        vr.IsValid(u); 
    } 
CustomUser.cs: 
    public class CustomUser : BaseUser 
    { 
    } 
BaseUser.cs 
    public class BaseUser 
    { 
        [ValidateNonEmpty] 
        public string pass1 { get; set; } 
        [ValidateSameAs("pass1")] 
        public string pass2 { get; set; } 
    } 
        
For more, see 
http://support.castleproject.org/projects/COMP/issues/view/COMP-ISSUE-87
 
        
--
donjon
by Castle Stronghold
http://www.castle-donjon.com



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to