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 dree...@gmail.com 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

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

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 buckof...@gmail.com 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

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 buckof...@gmail.com wrote: DOH! Nice find David. I've been using this binding in several T5.1 projects and

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 thiag...@gmail.com wrote: On Fri, 08 Apr 2011 15:44:43 -0300, Joe Klecko buckof...@gmail.com 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

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 dree...@gmail.com 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,

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 igor.drobia...@gmail.com 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

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 thiag...@gmail.com wrote: On Fri, 08 Apr 2011 16:59:26 -0300, David Rees dree...@gmail.com wrote: Yep, did that and it works great now.  Should I update the wiki or something? Please do it. Thanks in advance. :) Done.

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