ryanmac said the following on 27/05/10 12:15:
here is the full event that came from... what i was doing in 1.5.0 was
rather than call the listener twice to set an event arg "userId" and
"ownerId"
i used<event-arg name="ownerID" variable="userID" /> ta have machii
to create an event arg "ownerId" created with the value of the event
arg "userId" that already existed in the event. Do I misunderstand the
purpose of this tag?
The attribute of "variable" is really for legacy integration. It
defined a variable in another scope (like request / application / etc)
you want to pull into the event object:
http://trac.mach-ii.com/machii/wiki/ConfigFileExplained#event-arg
it seemed to make sense to me if you have a
function that might do some heavy processing.
You can accomplish what you want to do in 1.8 using the M2 expression
language (EL) syntax (note: this uses the "value" attribute):
<event-arg name="ownerID" value="${event.userID}" />
Sounds like what you did worked in 1.5 -- however I'm surprised it did
because I have no clue how it did. It was never intended to work that
way (according to the documentation) so I suggest you use the technique
I showed above for compatibility.
HTH,
.pjf
--
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
***New URLs as of April 29th, 2010***
SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/