Data validation and form components

2009-04-28 Thread Peter Dotchev
Hi, Setter methods of my business logic classes perform validation and throw exceptions if given parameter is invalid. I don't have separate methods for data validation. In my wicket form I use CompoundPropertyModel which sets user entered values directly in the business object. If the user

Re: Data validation and form components

2009-04-28 Thread Mauro Ciancio
On Tue, Apr 28, 2009 at 5:40 PM, Peter Dotchev dotc...@gmail.com wrote: Setter methods of my business logic classes perform validation and throw exceptions if given parameter is invalid. I don't have separate methods for data validation. In my wicket form I use CompoundPropertyModel which

Re: Data validation and form components

2009-04-28 Thread Jeremy Thomerson
Many folks on this list will disagree with you. For most CRUD applications, it is perfectly acceptable to directly manipulate domain objects from forms. For these applications, there is no reason to maintain a separate set of value transfer objects. The ROI isn't high enough. Of course, there