Exactly. Like an <argument> is static info passed into a message, and a <value> is static information passed into a view.
This is used in my applications when configuring chained events where the presence of a value in the event affects processing/rendering. DW. On Thu, Jul 16, 2009 at 8:26 AM, Doug Hughes <[email protected]> wrote: > Wouldn't that simply be static information being passed into an event > handler? Seems.... odd? I'm not seeing it yet. > > Doug Hughes, President > Alagad Inc. > [email protected] > 888 Alagad4 (x300) > Office: 919-550-0755 > Fax: 888-248-7836 > > > On Thu, Jul 16, 2009 at 8:16 AM, Dan Wilson <[email protected]> wrote: > >> Yeah, you know, I have a message that usually goes in my global controller >> called PutStaticInEvent. Which takes a set of arguments and sets them by >> name into the event with the corresponding values. >> >> It comes in handy for situations like this, so I wonder if there isn't a >> usecase for an argument tag as a child tag of the event handler? >> >> Any opinions? >> >> DW >> >> >> >> >> >> On Thu, Jul 16, 2009 at 8:12 AM, Doug Hughes <[email protected]> wrote: >> >>> "Thus, there isn't currently a mechanism to pass an argument to an >>> event-handler as far as I know." >>> >>> Sure there is: event values. :) >>> >>> Doug Hughes, President >>> Alagad Inc. >>> [email protected] >>> 888 Alagad4 (x300) >>> Office: 919-550-0755 >>> Fax: 888-248-7836 >>> >>> >>> On Wed, Jul 15, 2009 at 10:49 PM, Dan Wilson <[email protected]> wrote: >>> >>>> Arguments are child tags of Message tags. >>>> >>>> >>>> For example: >>>> <event-handler name="page.index" type="SecuredEvent"> >>>> <broadcasts> >>>> <message name="NeedStuff"> >>>> <argument name="requiredRole" value="admin" /> <!-- This is the >>>> role I want to pass to my secured event --> >>>> </message> >>>> </broadcasts> >>>> <results> >>>> <result do="view.templateSideNav" /> >>>> </results> >>>> <views> >>>> <include name="body" template="dspIndexSideNav.cfm" /> >>>> </views> >>>> </event-handler> >>>> >>>> Thus, there isn't currently a mechanism to pass an argument to an >>>> event-handler as far as I know. >>>> >>>> >>>> DW >>>> >>>> >>>> >>>> On Wed, Jul 15, 2009 at 5:54 PM, Jeremy Prevost <[email protected]>wrote: >>>> >>>>> >>>>> Hi! >>>>> >>>>> I'm trying to use an EventType to secure my events. I'm not having any >>>>> trouble getting my "SecuredEvent" to trigger before the rest of my >>>>> broadcast. However, what I am having trouble with is passing an >>>>> argument into the SecuredEvent. In short, I want to pass in a required >>>>> role, but define it in my event config. >>>>> >>>>> Here's the type of thing I'm trying to do, but it doesn't work. >>>>> >>>>> <event-handler name="page.index" type="SecuredEvent"> >>>>> <argument name="requiredRole" value="admin" /> <!-- This is the >>>>> role I want to pass to my secured event --> >>>>> <broadcasts> >>>>> <message name="NeedStuff" /> >>>>> </broadcasts> >>>>> <results> >>>>> <result do="view.templateSideNav" /> >>>>> </results> >>>>> <views> >>>>> <include name="body" template="dspIndexSideNav.cfm" /> >>>>> </views> >>>>> </event-handler> >>>>> >>>>> Is this not supported, or am I just having a syntax problem? >>>>> >>>>> Thanks, >>>>> Jeremy >>>>> >>>>> >>>> >>>> >>>> -- >>>> “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 >>>> >>>> >>>> >>>> >>> >>> >>> >> >> >> -- >> “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 >> >> >> > > > > -- “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 --~--~---------~--~----~------------~-------~--~----~ 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 . -~----------~----~----~----~------~----~------~--~---
