Brilliant Peter, just what I need - thank you!

On Apr 19, 6:02 pm, "Peter J. Farrell" <[email protected]> wrote:
> You can't nest expressions like that but you can use the "overwrite"
> attribute of <event-arg>:
>
> <event-handler event="showLesson" access="public">
>    <event-arg name="lessonId" value="${properties.defaultLessionId}"
> overwrite="false" />
>    <call-method bean="lessonService"
> method="getLessonById"args="lessonId=${event.lessonId}"
> resultArg="lesson" />
>    <view-page name="myView" contentArg="mainContent" />
>    <execute subroutine="standardLayout" />
> </event-handler>
>
> By default, "overwrite" is always true.  However, when set to "false" --
> the event-arg acts like cfparam.
>
> HTH,
> Peter
>
> Brian FitzGerald said the following on 04/19/2011 05:35 AM:
>
>
>
>
>
>
>
>
>
> > Hey guys,
>
> > I'm wondering if there is a way to accomplish this, because this
> > attempt doesn't work:
>
> > <event-handler event="showLesson" access="public">
> >    ***<call-method bean="lessonService" method="getLessonById"
> > args="lessonId=${event.lessonId:${properties.defaultLessonId}}"
> > resultArg="lesson" />***
> >    <view-page name="myView" contentArg="mainContent" />
> >    <execute subroutine="standardLayout" />
> > </event-handler>
>
> > What's happening is I'm getting Google Bots that are requesting my
> > pages/events without providing the args that are typically there in
> > the event object and, as a result, I would like to provide a
> > defaultLessonId property that can be used in those cases.  Is there a
> > better way to do this?
>
> > Thanks!
> > Brian
>
> --
> Peter J. Farrell
> [email protected]
> [email protected]http://blog.maestropublishing.com
> Identi.ca / Twitter: @maestrofjp

-- 
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/

Reply via email to