Madhavi Ginjupalli wrote:
>
> Hi friends,
>
> Im my application, every logged user
> belongs to a role(for example manager, worker etc).
> The business logic is such that each role has a
> predefined layout(which is available as a .vm file
> in the layout directory). Once the user logs in,
> i have to choose a template that fits his role
> and as long as he stays in the session, the same
> layout should be used for all the forthcoming screens.
>
> Im finding that i will have to explicitely do a
> data.setLayoutTemplate() in every screen. Is there anything
> in the framework which allows me to set session wise
> defaults (like layout templates, background color etc)?
>
So do you basically want the same content for each type of
user but just different layouts and navigations?
For example, do you want to have the same Index.vm
for all the users but have different navigations
depending on the user who is logged in. Maybe a
different menu across the top for different users.
If you explained a little more, I might be able
to give you some specific help.
--
jvz.
Jason van Zyl
[EMAIL PROTECTED]
http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine
http://jakarta.apache.org/commons
http://tambora.zenplex.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]