Re: Problem with pass parameter Using @Environmental

2011-10-28 Thread Bo Gao
Thanks On Oct 27, 2011, at 3:52 PM, Steve Eynon wrote: > The Enviroment is tied to a ThreadLocal in the Request, so if you > don't pop MyData manually, it should be cleared out automatically when > the Request ends. > > I'm not sure why MyData is not found on the Environment Stack - does > getDa

Re: Problem with pass parameter Using @Environmental

2011-10-27 Thread Barry Books
I've never tried this but I think this my help you http://tapestry.1045711.n5.nabble.com/T5-2-Looking-For-A-RenderNotification-Mixin-Example-td4917771.html#a4920626 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org

Re: Problem with pass parameter Using @Environmental

2011-10-27 Thread Steve Eynon
The Enviroment is tied to a ThreadLocal in the Request, so if you don't pop MyData manually, it should be cleared out automatically when the Request ends. I'm not sure why MyData is not found on the Environment Stack - does getData() return an actual object or a null? Steve. On 27 October 2011

Problem with pass parameter Using @Environmental

2011-10-27 Thread Bo Gao
I have a 2 nested component. I pass Parameters Using @Environmental service. Code in Outer Component: void beginRender() { environment.push(MyData.class, data); } void afterRender() { environment.pop(MyData.class); } Code in inner C