On 11/26/01 4:55 AM, "Costas Stergiou" <[EMAIL PROTECTED]> wrote:
> Hi all, > I have the following problem: > I use the UIManager to create skins for my application. Since I want > each user to define its own skin, I extend the UIManager tool and override > the setSkin(RunData data) method to set the appropriate skin per request > (based obviously on a user preference). > > The problem is that the skins seem to get mixed up! > > I checked the code of TurbinePullService.populateWithRequestTools method > and I see that the ApplicationTools are reused with no syncrhonization (on the > actual > web-request of the user). > As I understand from the code, each ApplicationTool is just init'ed before > being added to the context, but the same instance of the tool is used for > more than one requests withouth synchronization. So, if for one request > a user is choosing one skin and at the same time another user uses a second > skin, the the actual object instance that is added to the context of both > requests, may be the same (so the mix up) > > Is that correct? Am I missing something here? > Please, give me some feedback on this! I will take a look at this today. Thanks. > Thanks for your help, > Costas > > -- jvz. Jason van Zyl http://tambora.zenplex.org http://jakarta.apache.org/turbine http://jakarta.apache.org/velocity http://jakarta.apache.org/alexandria http://jakarta.apache.org/commons -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
