actually it should be myBean.setMomento( argumentcollection:form )

On 3/29/06, Chris Stoner <[EMAIL PROTECTED] > wrote:
The form itself is a struct.  As long as the field names match the argument names in your setMomento method you can do something like this:

myBean.setMomento( argumentscollection:form )


On 3/29/06, David Mineer <[EMAIL PROTECTED]> wrote:
I am missing something simple here, but what is the easiest way to
pass form field values to a bean.

I have a bean and I initialize it with default values.  The form is
populated with those default values.  When the form is submitted I
want the bean to be updated with the new values.

Do I loop over the form.fieldnames variable and use the bean setters.

How do I incorporate the setMemento way.  Would that be appropriate
here.  Is there a struct of form.fieldnames that I can use.

Tia

--
David Mineer Jr
---------------------
The critical ingredient is getting off your butt and doing
something. It's as simple as that. A lot of people have ideas,
but there are few who decide to do something about them now.
Not tomorrow. Not next week. But today. The true entrepreneur
is a doer.


----------------------------------------------------------
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).

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




----------------------------------------------------------
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).

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

Reply via email to