Well, you can do it with call-methods with the colon : default arg syntax. I could see expecting to be able to the same with listeners.
Might be handy to have those values in the config file. Any reason ?daySpan couldn't just override that event-arg? On Mon, Apr 18, 2011 at 10:33 AM, Derrick Jackson < [email protected]> wrote: > You know Matt and Brian, > > The more I think about this the more I am starting to agree with both of > you. This would probably be best accomplished using point two in Matt's > response. I think I will change my listenter to this: > > <cfset var daySpan = event.getArg("daySpan",30) /> > > I mean it would be a nice enhancement but not sure how much value others > would find in this and if the development time is worth the return. BTW, I > did test this Matt and the defined event-arg does override what is passed in > via the URL. > > > On Mon, Apr 18, 2011 at 10:18 AM, Matthew Woodward > <[email protected]>wrote: > >> On Mon, Apr 18, 2011 at 7:06 AM, Derrick Jackson < >> [email protected]> wrote: >> >>> I was actually thinking about doing that before posting the potential >>> enhancement idea. I may still go with that route but thought I would see >>> what folks thought of the idea. >> >> >> Let me preface what I'm going to say by thanking you for the idea. We >> absolutely love it when people suggest new features and wish more people >> would do so when they run into things they'd like to see added. >> >> That being said ;-) ... my initial reaction is that this is unnecessary >> since there are a couple of other ways to handle this with (in my opinion) >> not much down side: >> >> 1. Don't have event-arg in your event-handler XML, just pass it in >> 2. Define a default in your listener or service method >> >> I suppose there would be an argument that given your proposed way of doing >> things if you look at the XML you see the "default," but I'm not sure that's >> compelling enough to warrant this as a feature. >> >> For the sake of discussion, I suppose it points to something like this as >> a possible syntax: >> <event-arg name="daySpan" value="30" allowoverride="true" /> >> >> So that way if you do have something different in your event it would >> override the one defined in the event-handler XML. We definitely would not >> want a behavior where by default things are overridden. >> >> Actually now that I think this through I'd have to test--I assume you >> tested this and if you put a different value in the URL the one defined in >> the XML takes precedent? Guess I've never tried that. >> >> -- >> Matthew Woodward >> [email protected] >> http://blog.mattwoodward.com >> identi.ca / Twitter: @mpwoodward >> >> Please do not send me proprietary file formats such as Word, PowerPoint, >> etc. as attachments. >> http://www.gnu.org/philosophy/no-word-attachments.html >> >> -- >> To post to this group, send email to >> [email protected] >> For more options and to unsubscribe, visit this group at >> http://groups.google.com/group/mach-ii-for-coldfusion?hl=en >> >> SVN: http://svn.mach-ii.com/machii/ >> Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/ >> > > -- > To post to this group, send email to > [email protected] > For more options and to unsubscribe, visit this group at > http://groups.google.com/group/mach-ii-for-coldfusion?hl=en > > SVN: http://svn.mach-ii.com/machii/ > Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/ > -- To post to this group, send email to [email protected] For more options and to unsubscribe, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en SVN: http://svn.mach-ii.com/machii/ Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
