Re: Environmental annotation

2009-06-26 Thread Sergey Didenko
Thank for the tip, Kristian. So probably this bug is not important then. On Fri, Jun 26, 2009 at 9:56 AM, Kristian Marinkovic wrote: > when compiled your inner class will get an own .class file > in the components package. tapestry will load any class > from the components package and enhance it.

Re: Environmental annotation

2009-06-25 Thread Kristian Marinkovic
package :) g, kris Sergey Didenko 26.06.2009 08:39 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema Re: Environmental annotation Howard, I don't want to be ontrusive, but I mean environmental services. They are not obligated to be component classes

Re: Environmental annotation

2009-06-25 Thread Sergey Didenko
Howard, I don't want to be ontrusive, but I mean environmental services. They are not obligated to be component classes. RenderSupport, FormSupport, TabModel are not component classes, right? ( http://tapestry.apache.org/tapestry5.1/guide/env.html ) My report is related to a problem of fetching a

Re: Environmental annotation

2009-06-25 Thread Howard Lewis Ship
@Environmental only works on component classes, period. If you are finding otherwise, there's something wrong with your tests or observations. On Thu, Jun 25, 2009 at 10:19 AM, Sergey Didenko wrote: > Well, I don't use @Environmental inside the inner class. > > Ok, then why @Environmental works f

Re: Environmental annotation

2009-06-25 Thread Sergey Didenko
Well, I don't use @Environmental inside the inner class. Ok, then why @Environmental works for OuterClass which is placed outside .base, .page, .component packages? To reproduce just replace InnerClass for OuterClass in the previous example. And add OuterClass.java: package mytapp; public class

Re: Environmental annotation

2009-06-25 Thread Howard Lewis Ship
Inner classes are not component classes and are not transformed (component class transformation is the hook that allows @Environmental to work). On Thu, Jun 25, 2009 at 9:48 AM, Sergey Didenko wrote: > Sure, I talk about component classes. Sorry for the unclear message. > > I played with the bug

Re: Environmental annotation

2009-06-25 Thread Sergey Didenko
Sure, I talk about component classes. Sorry for the unclear message. I played with the bug and reproduced it in the simple form. It happens when I put an inner class of the page into environment and use @Environmental. It does not happen when I refactor that inner class out of the page. It does n

Re: Environmental annotation

2009-06-25 Thread Onno Scheffers
> > is it ok, that @Environmental does not work for user defined classes? > > I expected it to work after reading > http://tapestry.apache.org/tapestry5.1/guide/env.html. But it does > not. I use environment.peek() instead. The answer should be in the very last paragraph of that page. regards,

Re: Environmental annotation

2009-06-25 Thread Howard Lewis Ship
@Environmental only works for component classes. On Thu, Jun 25, 2009 at 7:51 AM, Sergey Didenko wrote: > Hi, > > is it ok, that @Environmental does not work for user defined classes? > > I expected it to work after reading > http://tapestry.apache.org/tapestry5.1/guide/env.html. But it does > no

Environmental annotation

2009-06-25 Thread Sergey Didenko
Hi, is it ok, that @Environmental does not work for user defined classes? I expected it to work after reading http://tapestry.apache.org/tapestry5.1/guide/env.html. But it does not. I use environment.peek() instead. Regards, Sergey. --