Hi Jeremy,

First off I want to thank you for posting the relevant files, as this
makes it *much* easier to troubleshoot problems.

The issue here lies with the message and message-listener in your
ModelGlue.xml file:

The name of the message that is being broadcast by the get.users event
is "GetUsers", but the message-listener is listening for "get.users"
-- this means that the broadcast never fires the controller function,
and therefore the "users" value is not populated. If you change either
the message name or message-listener message so that they match, this
should solve the problem.

By the way, if you choose to change the message attribute of the
message-listener to "GetUsers", then you can eliminate the function
attribute, so instead of this:

<message-listener message="GetUsers" function="GetUsers" />

You can do this instead:

<message-listener message="GetUsers" />

If the function attribute is omitted, the listener will invoke a
function with the same name as the message, thus avoiding the need for
duplication in the two attribute values.

--
Ezra Parker


On Wed, Feb 3, 2010 at 11:16 PM, Jeremy Rottman <[email protected]> wrote:
> I have poured over the existing documentation for modelglue and
> remoting and I am having a bit of trouble getting this to work
> correctly.
>
> I have created this very simple flex application based on the one in
> the documentation : http://modelglue.pastebin.com/f67b01d37
>
> The issue I am having is every request to the RemotingService.cfc
> result comes back as an empty string. I have verified that the event
> in question does work when called from a cfm page.
>
> I am at a bit of a loss as to why this would come back as an empty
> string. Any help with this would be greatly appreciated.
>
> Here is my ModelGlue.xml and my RemotingService.cfc
>
> ModelGlue.xml: http://modelglue.pastebin.com/f250aa5b0
> RemotingService.cfc: http://modelglue.pastebin.com/f6796f20
>
> --
> 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