aaaah. so I don't have to  do each individual argument anymore. wow,
this is gonna take some time to convert all this stuff.
Thanks so much Matt.



On Sat, Aug 22, 2009 at 1:16 PM, Matthew Woodward<[email protected]> wrote:
> David D-V Tran wrote:
>>
>> I see it now... so basically this...
>>
>> <listeners>
>>        <listener name="SampleListener" type="listeners.SampleListener"/>
>> </listeners>
>
> Right--that will use the default EventInvoker. But as I said if you were
> previously using the EventArgs invoker (and I believe you were using the OLD
> eventargs invoker), your listener methods are probably expecting to receive
> each event argument individually, so make sure to adjust those as well.
>
> If your listener methods are like this:
> <cffunction name="myMethod" access="public" output="false"
> returntype="void">
>  <cfargument name="arg1" type="string" required="true" />
>  <cfargument name="arg2" type="string" required="true" />
> </cffunction>
>
> You'll want to change them to this:
> <cffunction name="myMethod access="public" output="false" returntype="void">
>  <cfargument name="event" type="MachII.framework.Event" required="true" />
> </cffunction>
>
> And then you'll get at arg1 and arg2 inside your listener method by called
> arguments.event.getArg("arg1"), etc.
>
> --
> Matthew Woodward
> [email protected]
> http://www.mattwoodward.com/blog
>
> Please do not send me proprietary file formats such as Word, PowerPoint,
> etc. as attachments.
> http://www.gnu.org/philosophy/no-word-attachments.html
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
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/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to