Doh! But I believe that rule came into effect in 2.3. Regards, Daniel
On Fri, 23 Jul 2004, Scott Eade wrote: > Daniel wrote: > > >That should work... Try using: "/NewLayout.vm" ? > > > Henning is going to flip out when he sees this - you are breaking one of > the two golden rules for using templates with Turbine - see: > http://jakarta.apache.org/turbine/turbine-2.3/services/template-service.html > (under the Usage heading). > > I personally don't set any layouts from actions, but looking at the > JavaDoc I would say that in an action you should probably use: > > data.setLayout("NewLayout.vm"); > > The setLayoutTemplate() method is for changing the layout from within > the template itself (i.e. within the vm file for the template whose > layout you are changing). > > Scott > > -- > Scott Eade > Backstage Technologies Pty. Ltd. > http://www.backstagetech.com.au > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
