Is Price a string? Could you delete the lines and run the tests? I'd be happy to apply the patch if you make sure all the tests continue to pass
2012/1/26 Rémi BOURGAREL <[email protected]> > I originally sent this mail to John Simons and he told that it'd be more > appropriate here so .. > > > I was trying to debug the Monorail Validation because on of my property > with the target "package.Scopes[0].Prices[0]. > Price" wasn't validated. > > So I forked the source code, launch the debugger. And it seems the problem > is between the line 506 and 509 when you try to get the PropertyInfo with > the target : > > > if (typeof(ICollection).IsAssignableFrom(type)) >> { >> return null; >> } >> > > "If the property is a collection then return null" ... > Why would you do that ? If I delete these lines, my members are validated > > And on the line 704 - 707 > > ObtainTargetProperty(requestContext, target, delegate(PropertyInfo >> property) >> { >> >> validators.AddRange(validatorRegistry.GetValidators(validatorRunner, >> property.DeclaringType, property, RunWhen.Everytime)); >> }); >> >> -- > > So for the textbox bounded to "package.Scopes[0].Prices[0].Price" you'll > add all the validations for "package.Scopes[0].Prices" and "package.Scopes" > !! > > > -- > Rémi BOURGAREL > Téléphone : +336 49 16 78 57 > Adresse : 82 Rue Matabiau , 31 000 Toulouse, France > > -- > 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. > -- Cheers, hammett http://hammett.castleproject.org/ -- 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.
