<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.lhotka.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>CSLA .NET discussion</title><link>http://forums.lhotka.net/forums/5.aspx</link><description>General discussion about CSLA .NET</description><dc:language /><generator>CommunityServer 2008.5 SP3 (Build: 36.8414)</generator><item><title>ASP.NET MVC Model Binder and postback BusinessListBase</title><link>http://forums.lhotka.net/forums/thread/52642.aspx</link><pubDate>Fri, 27 Apr 2012 13:06:34 GMT</pubDate><guid isPermaLink="false">49a2225a-bd1e-4c5d-a665-720b81e87ca9:52642</guid><dc:creator>wilfreds</dc:creator><slash:comments>0</slash:comments><comments>http://forums.lhotka.net/forums/thread/52642.aspx</comments><wfw:commentRss>http://forums.lhotka.net/forums/commentrss.aspx?SectionID=5&amp;PostID=52642</wfw:commentRss><description>&lt;p&gt;Is there a problem with populating a model that contains a list?&lt;/p&gt;
&lt;p&gt;How to reproduce:&lt;/p&gt;
&lt;p&gt;In the ProjectTracker(4.3.10) sample I have added the rule: &lt;/p&gt;
&lt;p&gt;BusinessRules.AddRule(new Csla.Rules.CommonRules.MaxLength(DescriptionProperty, 3));&lt;/p&gt;
&lt;p&gt;to the ProjectEdit class.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you edit a project you have &amp;quot;Project name&amp;quot; and &amp;quot;Description&amp;quot;. An under the Save button you have a list of resources.&lt;/p&gt;
&lt;p&gt;When you click Save it will not save and you get an error because of the broken rule. That is correct.&lt;/p&gt;
&lt;p&gt;But, the list of resources that is connected to the project is now empty.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Wilfred&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>