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.


Index: WebMacroSiteLayout.java
===================================================================
RCS file: 
/products/cvs/turbine/turbine/src/java/org/apache/turbine/modules/layouts/WebMacroSiteLayout.java,v
retrieving revision 1.9
diff -r1.9 WebMacroSiteLayout.java
107a108,113
>         /* variable for the action messages in the layout template */
>         if (data.getMessage() != null)
>         {
>             context.put("action_message", data.getMessage());
>         }
>                     


Index: default.wm
===================================================================
RCS file: /products/cvs/turbine/turbine/examples/webmacro/layouts/default.wm,v
retrieving revision 1.1
diff -r1.1 default.wm
6a7,13
> #if($action_message)
> #begin
>         <tr>
>                 <td><font color="red">$action_message</font>
>         </tr>
> #end
>       

-- 
Sean Legassick
[EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to