The default Layout is set by the properties file and can be overridden
by a Screen class. So the convolution gets deeper :) I am guessing
that you have a index.wm screen template that is empty, correct? Then
create an associated Screen .../screens/Index.class
that sets the layout to Index.
public String getLayout(RunData data)
{
return "Index";
}
"Diethelm Guallar, Gonzalo" wrote:
>
> I'm using a WebMacroOnlyLayout to render frames on
> my pages. I need to set a value in the frameset-based
> layout using a WebMacro variable. This is what the files
> look like:
>
> app/templates/layouts/index.wm
> WEB-INF/classes/modules/layouts/Index.class
>
> The class in Index.class looks like this:
>
> public class Index extends WebMacroOnlyLayout
> {
> public void doBuild( RunData data ) throws Exception
> {
> WebContext context = getContext( data );
> context.put("inqacc", "Consulta de Cuenta");
> super.doBuild(data);
> }
> }
>
> Am I correct in assuming the class in Index.class
> will be automatically called when processing index.wm?
> I can't seem to make the "inqacc" variable be a valid
> reference in index.wm, and started wondering whether
> this automatic processing of classes is also true for
> layouts as it is for screens.
>
> Thanks,
>
> --
> Gonzalo A. Diethelm
> [EMAIL PROTECTED]
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]