> Screen classes contain a method String getLayout(RunData) which
> determine the Layout module that is used. The default implementation
Layout module meaning the Layout class? Because, the Layout template
is correctly being used (the one matching the name and directory of the
screen temlate), but the correspondin Layout class is not being used.
> looks in TR.props. So if you want to set a different Layout you need to
> create a Screen that matches your screen template and return the correct
> Layout from the above mentioned method.
I do use my own propriatery layout (set in TR.props) but this is the only
layout
class being used.
On the other hand, having to override the getLayout() method for every
screen I am using is really difficult. Why Turbine does not locate
and use the Layout class the same way it does with the Layout template?
I have a layout template named /view/Default.vm that is used for a dozen of
templates
that are below the /view directory; but the corresponding view.Default
layout class is
never being used.
Is this correct?
Thanks
>
> john mcnally
>
> Costas Stergiou wrote:
> >
> > Hi,
> > I try to use a different than the default layout, and although the
layout template
> > is used (velocity) the accompanied Layout class (which extends the
VelocityEcsLayout)
> > is not used. Turbine always calls the Layout class that is defined in
the
> > services.VelocityService.default.layout property.
> > Any ideas?
> > I think turbine uses the same logic for tracing and calling classes for
the layouts
> > as it does with the screens and navigations. Although it does it with
the template,
> > it doesn't with the corresponding class.
> >
> > I should mention that all the above work fine with screens (templates)
and
> > navigations.
> > Thanks for any ideas,
> > Costas
>
> ---------------------------------------------------------------------
> 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]