Fixed... I think. It would be the 3-4th time I thought I "fixed" it the
past few days.
Populate calls another method to invoke the setter. It was basically just a
facade for <cfinvoke>. By re-writing it using cfscript and evaluate(), the
problem went away.
evaluate('this.set#arguments.setter#(arguments.value)');
rather than
<cfinvoke component="#this" method="set#setter#">
<cfinvokeargument name="#setter#" value="#arguments.value#" />
</cfinvoke>
The only difference I can tell is I'm no longer passing a named argument to
the setter.
Jason Durham
On Fri, Oct 1, 2010 at 1:15 PM, Jason Durham <[email protected]> wrote:
> *SIGH*... I thought my problem was because my State table was empty.
> However, the problem persists.
>
> if I do try/catch within my populate method and dump the arguments, I see
> an instance of my State decorator. I'm at a loss here.
>
> As test, I hard coded everything into a controller and it worked as
> expected. I've obviously made a mistake somewhere but I'm not sure where to
> even look. Any help would be appreciated.
>
> Jason Durham
>
>
>
> On Fri, Oct 1, 2010 at 10:32 AM, Jason Durham <[email protected]> wrote:
>
>> Nevermind... another silly mistake. Is today Monday?
>>
>> Jason Durham
>>
>>
>>
>> On Fri, Oct 1, 2010 at 9:56 AM, Jason Durham <[email protected]> wrote:
>>
>>> I get this error when I attempt to add a State object to an Address
>>> object.
>>>
>>> //Get Address
>>> //My base decorator will add all necessary child objects for a given
>>> class.
>>> var address = GeoService.getAddress();
>>>
>>> //Get State. Expect state abbreviation
>>> var state = GeoService.getState( args : {abbreviation = form.state} );
>>>
>>> //Populate will loop through args keys and call evaluate(set#args.key#)
>>> address.populate(
>>> args : {
>>> Address1 = form.address1,
>>> State = state
>>> }
>>> )
>>>
>>> If I create a "setState" method on my Address decorator and dump the
>>> arguments, I see that a TransferObject is being passed in. Why do I see
>>> this message when adding a child to a M2O parent?
>>>
>>> *The TRANSFER parameter to the setSTATE function is required but was not
>>> passed in.*
>>>
>>> Jason
>>>
>>
>>
>
--
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8
You received this message because you are subscribed to the Google Groups
"transfer-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/transfer-dev?hl=en