> > Why are listeners being registered by a string? Why not just pass
> > trough the objects reference?
> >
> > If you have an object reference, you can do a dynamic method
> > invocation through cfinvoke, and you wouldn't have an issue.
>
> Ooohh.... For some reason, this one ended up in my spam
> folder so I missed it you may have something with that...
> I'll have to modify my listener registration functions to
> accept object and function rather than just a single argument
> but that should be straight forward. I'll let you know how I get on!
>
It works! Thanks for putting the idea in my head...
My listener registration code now looks like this which is pretty neat too
as it isn't dependent on specific application framework paths :)
<cfset registerEventHandler("deleteShopItem", this, "onDeleteShopItem")>
Paul
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272931
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4