Main Menu
Lecture 1
Lecture 2
Lecture 3
Lecture 4
Lecture 5
Lecture 7
 

 

 

Data validation with WebObjects 5
By: mmalcolm crawford, Adapted By Owen McKerrow
June 11, 2001 - 03:10 AM
http://www.stepwise.com/Articles/Technical/2001-06-13.01.html or get it here (saved as an IE Web Archive File )

Every discussion that comes up on the various WebObjects mailing list about Data Validation, all result in people being refered to a artcile written by Malcolm Crawford. So this weeks lecture looks at this actile and the example app he provides with it.

A desirable feature in any data entry application, whether GUI- or Web-based, is the ability to check data values before they are entered into a database. Ideally the user interface should guide the user into entering the right sort of data with the right format, however user-error is an unfortunate fact of life.

"Validation" may be implemented at a number of levels below the UI, from simple checking of data type, through checking that values lie within a sensible range, to integrity constraints implemented by the database itself.

WebObjects and the Enterprise Objects Framework (EOF) provide mechanisms for data validation at all these levels; in this article we will concentrate on validation down to the level of inter-attribute constraints in an enterprise object.

Lect 6 : Malcolms Demo ( Download )