I'm exposing these events via RemotingService.cfc as documented in the
MG wiki.
However, when I'm passing in my 'url' values as arguments in a call
(entryid) of say:
RemotingService.cfc?
method=executeEvent&eventName=entry.delete&entryid=C04D3009-98F0-D25F-
CCC0B0C67C0B6C16&returnformat=json&returnvalues=result
and wish to get the 'entryid' in my controller, it comes through as
emptystring.
As you can't really pass a structure through the URL in a 'get'
request, I added this to the AbstractRemotingService.cfc
<cfif cgi.request_method eq "post">
<cfset arguments.values = duplicate(form)/>
--><cfelseif cgi.request_method eq "get">
--> <cfset StructAppend(arguments.values,duplicate(url))>
</cfif>
This made sure the values passed through the URL during a 'get'
request were in fact available in my Controller through the standard
arguments.event.getValue('entryid') call.
Is this missing from the AbstractRemotingService or was this this by
design some how?
Thanks
The AbstractRemotingService has been updated to correct that
particular problem, and to fix a couple of other issues as well. To
use the most up-to-date version, please download the 3.1 maintenance
release beta (version 3.1.261):
http://www.model-glue.com/coldfusion.cfm
--
Ezra Parker
> --
> 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 model...@googlegroups.com
> To unsubscribe from this group, send email to
> model-glue+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>
On Feb 8, 10:28 pm, Ezra Parker <e...@cfgrok.com> wrote:
> Hi Kevin,
>
> The AbstractRemotingService has been updated to correct that
> particular problem, and to fix a couple of other issues as well. To
> use the most up-to-date version, please download the 3.1 maintenance
> release beta (version 3.1.261):
>
> http://www.model-glue.com/coldfusion.cfm
>
> --
> Ezra Parker
>