CSLA .NET

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

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • PropertyStatus and object level rules

    rated by 0 users
    Not Answered This post has 0 verified answers | 2 Replies | 1 Follower

    Top 25 Contributor
    243 Posts
    Curelom posted on Thu, Jun 16 2011 10:19 AM

     PropertyStatus does not capture object level rules.  Will this be addressed in the next release of Csla?  It would certainly be helpful.

    All Replies

    Top 10 Contributor
    9,475 Posts

    You are thinking of putting a PropertyStatus control on a form, and not specifying a property for the control, so it would know to pick up object level broken rules?

    This wouldn't be terribly hard to do, but I wonder about the visual representation? Where would you have the error icon appear? And anywhere you put it, wouldn't it look odd?

    I wonder if a better answer isn't to make the PropertyInfo control pick up object level broken rules (if you don't specify a property for the control). This control is completely lookless (it has no visuals at all), and you could therefore use it to implement a broken rule display that would fit nicely into your UI style.

    Rocky

    Top 10 Contributor
    2,279 Posts

    Or maybe create a separate ObjectInfo control for object level rules. We've discussed creating a ObjectInfo control in our CSLA projects.

    PropertyInfo and PropertyStatus is as the name incurs - tied to properties- and it's not that obvious to set the propertyInfo to null for Object level Broken rules.

    Jonny Bekkum, Norway CslaContrib Coordinator

    Page 1 of 1 (3 items) | RSS

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