all together now!
seriously, this is fine, thank you all.
salvatore

On 26 Mag, 15:59, Dan Wilson <[email protected]> wrote:
> It really isn't a hack, it is just a nested function.
> The value of the event is inside of the Event object, so we use
> arguments.event.getValue() to return it.
>
> Since ModelGlue allows any key name to be used for the event, you can change
> event=Some.Event, to x= Some.Event, or even whatever= Some.Event. The price
> for this abstraction is you gotta dynamically determine which key you are
> using... by this function: arguments.event.getValue("eventValue"). So put
> all together:
>
> arguments.event.getValue(arguments.event.getValue("eventValue"))
>
> Now you can get the name of the event, however you choose to refer to the
> event. Hack-free, Future Proof. Compact, Yet Stylish, no?
>
> DW
>
> On Tue, May 26, 2009 at 9:48 AM, salvatore fusto <[email protected]>wrote:
>
>
>
>
>
>
>
> > Yup, this works, but is so strange (it seems an hack) so can yoy
> > expalin me?
> > thanks
> > salvatore
>
> > On 26 Mag, 14:41, Tom McNeer <[email protected]> wrote:
> > > Salvatore,
>
> > > On Tue, May 26, 2009 at 3:20 AM, salvatore fusto <[email protected]
> > >wrote:
>
> > > > in mg1 i used to extract the name of the triggered event with a
> > > > trivial event.getEventHandlerName() in the onRequestStart of a
> > > > controller: how can i do the same in mg3?
>
> > > Try:
>
> > > arguments.event.getValue(arguments.event.getValue("eventValue"))
>
> > > --
> > > Thanks,
>
> > > Tom
>
> > > Tom McNeer
> > > MediumCoolhttp://www.mediumcool.com
> > > 1735 Johnson Road NE
> > > Atlanta, GA 30306
> > > 404.589.0560
>
> --
> “Come to the edge, he said. They said: We are afraid. Come to the edge, he
> said. They came. He pushed them and they flew.”
>
> Guillaume Apollinaire quotes- Nascondi testo citato
>
> - Mostra testo citato -
--~--~---------~--~----~------------~-------~--~----~
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