I presume that you're running CF 9, correct? If not, then a "Local
variables must be initialized" error will be thrown by this line:

<cfset var uCollection['UserID'] = value>

I will assume that you are on CF 9 and this is therefore not the issue
you have encountered, but I'm not really sure what you mean by "I have
been able to verify that if I put in static values, the return values
are correct."

Does this mean that you are able to get this to work if you do
something like this instead of retrieving the UserID from the event?:

<cfset var uCollection['UserID'] = 1>

What does your Flex file look like? Is the relevant portion still the
same as your post to this thread from a couple of days ago?:

value = new UsersVO();
value.UserID = 1;
MGService.executeEvent('get.user',value,'user,address');

If so, then what are the user and address values when they are
returned to Flex? Empty strings?

--
Ezra Parker


On Sat, Feb 6, 2010 at 1:40 PM, Jeremy Rottman <[email protected]> wrote:
> I have tried just about everything I could think of to get modelglue
> to work with a value object.
>
> From my tests when hitting the executeEvent method within
> RemoteService.cfc I can output the value of the argument passed in as
> a correctly typed valueobject (model.user.Users). From here it hits
> the method executeEvent within AbstractRemotingService.cfc. Again I
> can output that it is a correctly typed valueobject
> (model.user.Users). Now this is where I lose track of the valueobject
> passed in.
>
> In my tests I have this very simple controller method:
> http://modelglue.pastebin.com/f21a2bf59 . I have been able to verfy
> that if I put in static values, the return values are correct.
>
> So I am at a bit of a loss as to why I am unable to get this to work
> correctly. Any help with this would be greatly appreciated.
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" 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/model-glue?hl=en
>

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" 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/model-glue?hl=en

Reply via email to