You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joel Trunick <jo...@webifysolutions.com> on 2004/07/12 17:19:04 UTC
ThreadLocalStorage Visit/Global
Has anyone worked with Tapestry putting Visit and Global into Thread
Local. Where would be the place to do this, possible
Page.setVisit()/setGlobal? Seems like it might be better than passing
them around everywhere (I don't care for business logic in the
page.java).
Comments?
Joel
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: ThreadLocalStorage Visit/Global
Posted by Harish Krishnaswamy <hk...@comcast.net>.
Correction: The validation delegate is put in ThreadLocal from the page
itself.
Harish Krishnaswamy wrote:
> But why would you want to pass the entire Visit and Global to the
> domain layer? Sounds like that's what you are doing. The only thing I
> have in my ThreadLocal is a variation of the validation delegate and
> the PersistenceSession, and I do this in a servlet filter. I think
> passing the business data via ThreadLocal obscures the business
> interface.
>
> -Harish
>
>
> Joel Trunick wrote:
>
>> Has anyone worked with Tapestry putting Visit and Global into Thread
>> Local. Where would be the place to do this, possible
>> Page.setVisit()/setGlobal? Seems like it might be better than passing
>> them around everywhere (I don't care for business logic in the
>> page.java).
>> Comments?
>> Joel
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: ThreadLocalStorage Visit/Global
Posted by Harish Krishnaswamy <hk...@comcast.net>.
But why would you want to pass the entire Visit and Global to the domain
layer? Sounds like that's what you are doing. The only thing I have in
my ThreadLocal is a variation of the validation delegate and the
PersistenceSession, and I do this in a servlet filter. I think passing
the business data via ThreadLocal obscures the business interface.
-Harish
Joel Trunick wrote:
>Has anyone worked with Tapestry putting Visit and Global into Thread
>Local. Where would be the place to do this, possible
>Page.setVisit()/setGlobal? Seems like it might be better than passing
>them around everywhere (I don't care for business logic in the
>page.java).
>
>Comments?
>Joel
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org