If you don't care that the Visit is created before it is needed, it
doesn't matter. However, it would be ideal if your ThreadLocal could
create the Visit when it is actually needed. 

J

-----Original Message-----
From: Andreas Andreou [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 17, 2005 12:44 PM
To: Tapestry users
Subject: Re: Static Access to Visit Object?

Pablo Ruggia wrote:

>I'm doing this:
>I use a thread local variable in a class. And I subclass Base engine
>this way (UserContext is the class where I have the thread local
>variable Visit and statics methos getVisit and setVisit)
>
>
>I'm using it without around a month without any problem, but I've
>heard that I wouldn't sublcass BaseEngine in Picasso, so ........
>  
>
That's probably true... Why not create a BasePage
and set up the thread local there?


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



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

Reply via email to