On Wed, 9 Oct 2002 14:50, you wrote:
> Is there a way that I can disable VelocityECSLayout from an action? I
> would like to use VelocityOnlyLayout
Hi Phillip,
I am not sure if there is a way to do this. You can make Turbine use
VelocityOnlyLayout as the default Layout class by modifying the
services.VelocityService.default.layout setting in
TurbineResources.properties.
The only other way I know of is to override the getLayout(RunData data)
method in your Screen class to override the Layout class on a screen by
screen basis.
Have you tried calling data.setLayout("VelocityOnlyLayout") from your action?
> I am allowing users to create their own templates (for surveys) and can not
> create a screen class to change the layout. I need to do this in an
> action.
>
> Some history...
> I am working on a project called jsurvey which will allow html, email and
> vxml based surveys. I have surveys, pages, questions, validations,
> branching, reporting etc. In an html survey, a designer may want to use a
> frameset, and now my life got much more complicated. Before the frameset,
> I just did all the survey presentation all throught a rawscreen class, but
> with a frameset, now there are multiple entry points into the system, as
> opposed to a single point of entry.
Ugh... I know how much of a pain in the butt frames can be... I eventually
managed to convince my boss not to use frames in our system... they do add a
lot of complexity sometimes :(
Is there any reason why you can't use VelocityOnlyLayout across your entire
system?
-- Rodney
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>