Right now call-method doesn't support argumentcollection but I could see how that would be useful. I think you should file a ticket for this enhancement.
--Kurt On Fri, Dec 16, 2011 at 12:50 PM, Jason Blum <[email protected]> wrote: > I don't think this is a bug, just wondering if this behavior is intended. > > In my config file I have: > > <event-handler event="test" access="public"> > <call-method bean="SomeService" method="test" args="${event.getArgs()}" > /> > </event-handler> > > In SomeService.cfc, I have: > > <cffunction name="test"> > <cfargument name="arg1" type="any" /> > <cfargument name="arg2" type="any" /> > <cfdump var="#serializeJSON(arguments)#" /><cfabort /> > </cffunction> > > ...which outputs: > > {"arg1":{"e":"test","arg1":"apple","arg2":"banana"}} > > > > If I name the value I'm passing "argumentCollection": > > <call-method bean="SomeService" method="test" > args="argumentCollection=${event.getArgs()}" /> > > ...I get: > > {"arg1":,"arg2":,"argumentCollection":{"e":"test","arg1":"apple","arg2":"banana"}} > > > > ...I'm surprised the struct of arguments being passed to the service isn't > mapped to the method's arguments, the way the argumentCollection attribute > works between components. > > -- > To post to this group, send email to [email protected] > For more options and to unsubscribe, visit this group at > http://groups.google.com/group/mach-ii-for-coldfusion?hl=en > > SVN: http://svn.mach-ii.com/machii/ > Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/ -- To post to this group, send email to [email protected] For more options and to unsubscribe, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://svn.mach-ii.com/machii/ Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
