On Thu, 4 Jul 2002 02:34, you wrote: > I am trying to get TDK 2.1 to use two different velocity layout models in > one application. > > We have one section of the site using frames and have followed the Velocity > Site howto and set > > > services.VelocityService.default.layout = VelocityOnlyLayout > > In TurbineResources.properties. This works fine. However is disables $page. > > In another section of the site we do not use frames and need to use $page. > So want > > > services.VelocityService.default.layout = VelocityECSLayout > > However there does not seem to be a way of setting this for just one > screen. > > I have tried setting it directly using data.setLayout() but it does not > seem to work.
Hi Ben, Sorry for the late reply... you can do this by overriding the method Screen.getLayout(RunData) in your screen class. Return the name of the Layout class you want to use for that particular screen (ie: VelocityECSLayout). Let me know if you have any problems. Regards, -- Rodney -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
