Can't you say
#if ($data.Message)
{
<font color="red">$data.Message</font>
}
WM should try a get method to retrieve the message. It would seem either
way is fairly equivalent, however, the WM documentation does say that it is
best to avoid method references, for performance reasons. I have no
knowledge regarding the performance issue.
----- Original Message -----
From: jon * <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Thursday, May 18, 2000 10:23 AM
Subject: Re: [PATCH] action messages in a WebMacro layout
> on 5/18/2000 10:04 AM, Sean Legassick <[EMAIL PROTECTED]> wrote:
>
> > This is just a short patch for WebMacroSiteLayout to put the RunData
message
> > into the webcontext so that the layout template can include it.
> >
> > I've also included a patch for the example layout default.wm which
includes
> > the message.
>
> no need to duplicate that with it's own context value since the RunData
> object is already in the context...
>
> just say:
>
> #if ($data.getMessage())
> {
> <font color="red">$data.getMesssage()</font>
> }
>
> Sean, it is great to see someone other than myself and Dave using this
> stuff! Keep sending suggestions for improvements in. :-)
>
> thanks,
>
> -jon
>
> --
> Java Servlet Based - Open Source | Collab.Net
> Bug/Issue Tracking System | now hiring smart people
> <http://scarab.tigris.org/> | <http://Collab.Net/jobs/>
>
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]