(I'm reposting since this showed up in the archive, but I didn't get
it in my mailbox)

I'm new to CF and mach-ii (though not to OOP) so forgive me if this is
an FAQ which my Googling missed.

The mach-ii-info sample, which seems like a nice piece of work,  uses
UserTO as the bean on a user form. But it seems to me a form bean
should be a separate beast which contains string-only properties like
the form, along with storage for error messages and a validate()
method. Having UI-level stuff like error messages and validate()
doesn't seem right in the TO.

Avoiding this would mean that the listener that is reponding to the
form submission would have to perform a mapping from UserForm  to
UserTO or directly to User. Methods in User that take a UserForm
wouldn't seem right either.

Suppose the user form has a bunch of checkboxes for groups the user
belongs to. I picture the form bean containing a comma-separated
string of group ids, while the TO (or perhaps it's a separate
groupsTO) contains a ColdFusion list of group ids, and the User BO
translates this to updates to the users and groups tables.

Make sense? Any state of the art samples involving more complex forms
and multi-table updates?

Thanks,
- Richard


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to