CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

ASP.NET MVC Model Binder and postback BusinessListBase

rated by 0 users
Not Answered This post has 0 verified answers | 0 Replies | 0 Followers

Top 500 Contributor
27 Posts
wilfreds posted on Fri, Apr 27 2012 8:06 AM

Is there a problem with populating a model that contains a list?

How to reproduce:

In the ProjectTracker(4.3.10) sample I have added the rule:

BusinessRules.AddRule(new Csla.Rules.CommonRules.MaxLength(DescriptionProperty, 3));

to the ProjectEdit class.

 

When you edit a project you have "Project name" and "Description". An under the Save button you have a list of resources.

When you click Save it will not save and you get an error because of the broken rule. That is correct.

But, the list of resources that is connected to the project is now empty.

 

Regards,

Wilfred

Page 1 of 1 (1 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems