Heh, I know what you are all thinking "Oh god, not again!... Hasn't Barney typed a novel on this subject already?" For this I apologise.
I noticed that Barney mention earlier on, that a DTO can be used from View --> Model, in that do basic form validation via a DTO, then pass that into a BO for server-side validation. This struck a chord in many ways with me, as I was always under the impression a DTO was read only object, so my question is when you do form submit, do you initialize the DTO with your form data? part of the initialization process, it goes and does a bunch of basic hidden validation routines "is this an integer, does this email have an @ in the middle of it etc", if any fail throw an exception or store in an error stack for later? Is this how DTO's are used in the "form" validation cycle. It then also looses me for a moment, where once the DTO is created, its then transferred into a Bean, a Bean then does further server-side validation, which then gets handed into a DAO for storage. Once again, I *actually* read the archives and I've pieced together snippets of this, and while I think i understand the concept of a DTO in CFMX, the more reading I do on the subject, the more I start second-guessing the concept, so it would be fantastic to have a final ruling on my interpretation and maybe could be used as a "heres how DTO works, and an example of WHEN to use it" for others? heh. Regards Scott Barnes To unsubscribe from this email please forward this email to [EMAIL PROTECTED] This email message is confidential and may be privileged. If you are not the intended recipient please forward the email to [EMAIL PROTECTED] and delete the original. ABN AMRO Morgans Limited and its associates hold or may hold securities in the companies/trusts mentioned herein. Any general advice included in this email has been prepared without taking into account your objectives, financial situation or needs. Before acting on the advice, you should consider its appropriateness or discuss with one of our investment advisors. ABN AMRO Morgans Limited (ABN 49 010 669 726 AFSL 235410) A Participant of ASX Group .A principal member of the Financial Planing Association . ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at [EMAIL PROTECTED]
