Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread David Rees
On Fri, Apr 8, 2011 at 1:43 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 08 Apr 2011 16:59:26 -0300, David Rees wrote: >> Yep, did that and it works great now.  Should I update the wiki or >> something? > > Please do it. Thanks in advance. :) Done. http://wiki.apache.org/tapestry/Tapestry

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Howard Lewis Ship
On Fri, Apr 8, 2011 at 12:06 PM, Igor Drobiazko wrote: > You can use the PerthreadManager service. > > http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/services/PerthreadManager.html This is preferred. It ensures that everything is cleaned up at the end of the request with non

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Thiago H. de Paula Figueiredo
On Fri, 08 Apr 2011 16:59:26 -0300, David Rees wrote: Yep, did that and it works great now. Should I update the wiki or something? Please do it. Thanks in advance. :) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread David Rees
On Fri, Apr 8, 2011 at 12:01 PM, Thiago H. de Paula Figueiredo wrote: > On Fri, 08 Apr 2011 15:44:43 -0300, Joe Klecko wrote: >> DOH!  Nice find David.   I've been using this binding in several T5.1 >> projects and now starting to use it in T5.2 projects.  Thiago is there an >> easy T5 way to mak

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Igor Drobiazko
You can use the PerthreadManager service. http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/services/PerthreadManager.html On Fri, Apr 8, 2011 at 8:44 PM, Joe Klecko wrote: > DOH! Nice find David. I've been using this binding in several T5.1 > projects and now starting to u

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Thiago H. de Paula Figueiredo
On Fri, 08 Apr 2011 15:44:43 -0300, Joe Klecko wrote: DOH! Nice find David. I've been using this binding in several T5.1 projects and now starting to use it in T5.2 projects. Thiago is there an easy T5 way to make it thread safe or should the index value be stored using something like Thr

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Joe Klecko
DOH! Nice find David. I've been using this binding in several T5.1 projects and now starting to use it in T5.2 projects. Thiago is there an easy T5 way to make it thread safe or should the index value be stored using something like ThreadLocal? Also even though the page (http://wiki.apache.org

Re: T5.2 BindingPrefixCycle not thread safe

2011-04-08 Thread Thiago H. de Paula Figueiredo
On Fri, 08 Apr 2011 01:36:03 -0300, David Rees wrote: http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle Remember that this isn't part of the official documentation, so the quality of the pages vary a lot. It appears that the same CycleBinding ends up being used across r

T5.2 BindingPrefixCycle not thread safe

2011-04-07 Thread David Rees
http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle I notice that using the above code in T5.2 results in arbitrary results now on T5.2 if multiple requests are executing at the same time. It appears that the same CycleBinding ends up being used across requests. It seems that we'