For what you are describing you should look into the intake service. You would only use a single layout, and the red errors would only appear when values had been set by intake.
I think there is a howto on the Turbine site. HTH, Scott ----- Original Message ----- From: "Jack Axaopoulos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 24, 2002 5:21 AM Subject: Action overriding layouts? > > Is it possible for a Velocity action which is called > to override which layout will be used? > > I noticed that RunData implements setLayoutTemplate(), > but it doesn't seem to be used anywhere. > > Here is what I'm trying to accomplish. > > Say a user fills in some form data, but there is an error, > and you want to display the exact same form > but with a new error message being shown above the form in red. > > I was hoping to dynamically switch to an ErrorMessageLayout.vm > which simply adds a $UserErrorMessage variable and contains > $screen_placeholder where the original screen/form would appear. > > What is a typical Turbine/Velocity pattern for handling this? > > > > Im using Turbine 2.1 and Velocity 1.2. > > Regards, > > J > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
