Fair enough Chris... that is indeed what you could call a "more  
correct" way of doing it.

Either way would work, but Chris's is more bulletproof should you  
change your app from responding to event=foo.bar to responding to  
page=foo.bar.

J

On Nov 13, 2008, at 1:13 PM, Chris Blackwell wrote:

> I know this may be slightly OTT, but i try and write my apps such  
> that changing a setting in the MG config should not break  
> anything.  so i do...
>
> <cfset myevent = event.getValue(event.getValue("eventValue"),  
> "some.default") />
>
> imho, there should probably be a shorthand for this in  
> EventContext.cfc - getEventValue() perhaps?
>
> Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" group.
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/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to