Oct 27th, 2005, 04:45 AM
Validation on Controller vs Facade
Our application has two kinds of validation
1. You have the facade which validates our domain objects. This validates that everything meets our business requirments.
2. Then there is the controller / form that has form specific elements and the domain object on it. So we need some kind of 'form' validation that validates the data on the form.
Because the data on the form contains also our domain object we have validation method that can be found both on the facade as on the controller side.
Now, I was just wondering how most of you handle validation in a multi layered application.