Hello Peter, That worked perfectly!
Thanks again. Matt On Sep 15, 9:49 pm, "Peter J. Farrell" <pe...@mach-ii.com> wrote: > See this: > > http://www.iterateme.com/blog/index.cfm/2010/4/16/MachII-Modules-Dont... > > You don't have to copy your entire CS factory into your module -- you > have to have a CSProperty pointing to a relatively empty XML file. All > CS factory defined in modules inherit from the parent. So all you need > is the CSProperty so a child factory can inherit from the parent and > therefor no duplication of XML files are need. You just need to do this > so the parent child relationship can be setup. > > There is an issue pertaining to this: > > http://trac.mach-ii.com/machii/ticket/694 > > I hope to fix this, but it's tricky because child factory know about > parents but the reverse is not true. I haven't come up with an elegant > solution that doesn't require a whole ton of hacking to the framework. > > HTH, > .Peter > > Matt Riley said the following on 09/15/2010 10:56 PM: > > > Hello, > > > I'm attempting to run<call-method> in a module that accesses a bean > > defined in the primary (top level) ColdSpring factory. When I run this > > I'm receiving an error. > > > Is their syntax I'm missing to call a bean in this way? Right now the > > workaround is to copy and paste my ColdSpring property into my module > > but I'd prefer to only define this factory once. Should I define a > > separate CS factory for the module? I'd prefer to reuse the same bean > > from the top level CS factory but if I can't, I don't mind copying my > > CS factory into my module. > > > Below is some sample code of what I'm attempting to do: > > > Sample<call-method> from Module: > > <event-handler event="customerAction" access="public"> > > <call-method bean="customerManager" method="updateCustomer" args="$ > > {event.getArgs()}" resultArg="customerData" /> > > <redirect event="home" module="customer" /> > > </event-handler> > > > Error: > > Message: A call-method command in event named 'customerAction' in > > module 'customer' did not have a bean named 'customerManager' > > autowired into it. > > > Detail: Ensure your IoC container such as the 'ColdSpringProperty' is > > of a version that supports the call-method command. > > > Any help is greatly appreciated. > > > Thanks, > > > Matt -- You received this message because you are subscribed to Mach-II for CFML list. To post to this group, send email to mach-ii-for-coldfusion@googlegroups.com To unsubscribe from this group, send email to mach-ii-for-coldfusion-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en ***New URLs as of April 29th, 2010*** SVN: http://svn.mach-ii.com/machii/ Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/