It does work, they do pass to the method. This form works okay for me:
<cfset oD = createObject("component", "com.woodward.department")>
<cfset oD.init(argumentCollection=form)>
<cfdump var=#oD.getAll()#>
<form method="post" action="default.cfm">
<input type="hidden" name="name" value='foo'>
<input type="hidden" name="deptno" value="04832">
<input type="submit">
</form>
> I know that you can pass arguments to a method call using
> methodName(argumentCollection=arguments);, however, I've tried using
> ...(argumentCollection=form); and it doesn't work. The method will
> complain
> that it did not receive required arguments. Does anyone know why form
> won't
> pass to the method, but arguments will?
>
> One difference I know of, passing arguments is only done from within the
> CFC
> (method to method) and passing form is from a .cfm page to the CFC method
> (outside the CFC).
>
> Regards,
>
> Matt Knight | Dresser Corporate Web Team | Dresser, Inc. | w:972.361.9943
> |
> m:214.213.4016
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the word '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
> www.mail-archive.com/[EMAIL PROTECTED]
>
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word '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 www.mail-archive.com/[EMAIL PROTECTED]