I think you are misunderstanding how the remoting works. The intent is to
allow remote access to fire off Model Glue events and return Model Glue
event values. During the course of processing an event handler, any number
of values might be placed into the event. As such, when you want a value out
of the event you must ask for it by name:
event.getValue("food")
Then the event will return that value to you. This is because the event
stores a whole bunch of values in it and they are keyed as name=value, just
like a struct or collection.
So, with the RemotingService, you have access to any event handler and can
get any number of event values out of the event. The datastructure that
mimics the event, is a struct, thus the RemotingService will return a struct
for you. Once you have the data, you will have to deal with that data and
get out what you need. This is a concern of your individual application, not
the RemotingService.
DW
On Thu, Jan 14, 2010 at 1:41 PM, Chuck Savage <[email protected]> wrote:
> What's the proper return value? I don't think I want a name/value
> pair
> returning to the bind, I just want a value and was thinking I'd use
> the view
> result.
>
> Should I make a similar executeBind in AbstractRemotingService, but if
> I
> wanted to bind to a cfgrid vs the above text box, what is the proper
> return?
>
> --
> 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]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>
--
“Come to the edge, he said. They said: We are afraid. Come to the edge, he
said. They came. He pushed them and they flew.”
Guillaume Apollinaire quotes
--
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