Re: T5: How to inject a service into a component?

2007-05-04 Thread Howard Lewis Ship
Sure beats abstract properties, though! On 5/4/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Tapestry works by identifying the points at which a variable is read or updated and often replaces that with a method invocation that does something more complicated (such as persistent field values

Re: T5: How to inject a service into a component?

2007-05-04 Thread Howard Lewis Ship
Tapestry works by identifying the points at which a variable is read or updated and often replaces that with a method invocation that does something more complicated (such as persistent field values or component parameters). If the field is private, Tapestry is able to make the changes within a s

Re: T5: How to inject a service into a component?

2007-05-04 Thread Howard Lewis Ship
You should be seeing some logged console messages about private variables. Only private instance variables may have annotations on them; yours is "package private" not private. On 5/4/07, Michael Maier <[EMAIL PROTECTED]> wrote: Hi List, I'm trying to inject via @Inject annotation a service (i

Re: T5: How to inject a service into a component?

2007-05-04 Thread Jesse Kuhnert
I hope that's not the only reason. ...The framework should be working hard - not the users. ;) On 5/4/07, Massimo Lusetti <[EMAIL PROTECTED]> wrote: On 5/4/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > I wonder why this is as well, it's happened at least a couple times now - > at least enoug

Re: T5: How to inject a service into a component?

2007-05-04 Thread Massimo Lusetti
On 5/4/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I wonder why this is as well, it's happened at least a couple times now - at least enough that this idea may need to be re-evaluated. (I can help if it's just reflection stuff) This way the framework (inner javassist stuff) only need to 'sca

Re: T5: How to inject a service into a component?

2007-05-04 Thread Jesse Kuhnert
I wonder why this is as well, it's happened at least a couple times now - at least enough that this idea may need to be re-evaluated. (I can help if it's just reflection stuff) On 5/4/07, Michael Maier <[EMAIL PROTECTED]> wrote: ok, I solved... requestPageCache must be private...I don't know w

Re: T5: How to inject a service into a component?

2007-05-04 Thread Michael Maier
ok, I solved... requestPageCache must be private...I don't know why the variable to be injected must be declared private but tapestry could log a warning, that the instance variable is not private and therefor it won't be injected... Am 04.05.2007 um 11:37 schrieb Michael Maier: @Inje

RE: T5: How to inject a service into a component?

2007-05-04 Thread Kristian Marinkovic
hi michael, it should work with just @Inject. You can take a look at the BeanEditForm component... it uses a bunch of @Injects. (T5.0.4) g, kris Michael Maier <[EMAIL PROTECTED]> 04.05.2007 11:37 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema T5: How to inject a servi