> They do not realize that they should run the validate method The validate method for each attribute would be an internal method, not invoked from the caller page. <cffunction name="setSerialNumber" ...> <cfargument name="serialNumber" type="number" ...>
// Validate argument type // Validate argument data // Set attribute to argument value // or // Throw validation error </cffunction> Ok this was my first thought as well, but then how does one incorporate this if the validation requires checking a relationship between two properties, such as BeginDate is always before EndDate. When would you run this? Since one would need both dates set before any sensible validation could be checked, wouldn't one? -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 | | --------- Binary Soduko | | | --------- "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240798 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

