On Sep 4, 2009, at 3:53 PM, Jacek Kałucki wrote:
> So you assume, that all controls are bound to business objects.
> It's simply not true.
No, I don't assume that. I assert that validation is a business-layer
process, not a UI process.
> Lets assume I have control, that for e.g. controls presentation layer,
> not directly related with any business object.
> To validate it I must use form level validation.
Please explain what you mean by "validate". If you mean does it meet
the requirements of the UI, then yes, you need to do it there.
However, most controls do that already - you can't assign a boolean to
a spinner, or anything but a string to a textbox.
If you mean that a value must meet any other criteria, then that's a
business rule.
> I think that developer should have a choice, what validation
> method to use.
You always have a choice. The framework does the default for you; if
you want to do something else, you have to code it yourself.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]