At 18:01 2001-6-26 -0400, you wrote:
>On 6/26/01 5:07 PM, "Xun Liu" <[EMAIL PROTECTED]> wrote:
>
> > Not exactly. Different users will share the same templates, but different
> > layout and
> > look/feel.
>
>If the requirement is only to change the layout then why are you
>making calls to setScreenTemplate?


Here is an example:

An screen class has the following code in the doBuildTemplate() method:

If (the user is under 21) {
         data.setScreenTemplate("NoDrinking.vm")
}
else {
         data.setScreenTemplate("Drinking.vm")
}

As you pointed out, after setScreenTemplate is executed the layout template 
is also changed.

However the users want the screen templates ("NoDrinking.vm", 
"Drinking.vm", etc) to be
displayed in their preferred layout templates.


Thanks for your advices.

Xun




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to