How do I dynamically change the layout template in Turbine according to the 
current user role in a servlet session?

My use case is:
       Two workers share the same set of screens, but one of them
       has the additional role of "admin" and needs additional menu
       buttons to access additional screens. My plan is to have two layout 
       templates and dynamically set the layout template depending on
       the user's role.

My problem is:
       I was able to set the layout template from my "LoginUser.java" by
       calling "data.setLayoutTemplate()". However, every time I call 
       "data.setScreenTemplate()", the layout template got reset back to 
       the default one.

My questions is:
       If I have the plan that makes Turbine-sense, anybody has 
       suggestions/sample-code to show me how to do this?

Thanks in advance,

Joe
       

Reply via email to