Re: injecting services in T5

2008-02-22 Thread Howard Lewis Ship
ith a easy and constant lifecycle and no mutable internal > > state. Pages and components are mired in the much more complex page > > lifecycle and the component hierarchy of the page and have > > considerable mutable internal state. > > > > > > > > -- &g

Re: injecting services in T5

2008-02-22 Thread Angelo Chen
t; state. Pages and components are mired in the much more complex page > lifecycle and the component hierarchy of the page and have > considerable mutable internal state. > > > -- View this message in context: http://www.nabble.com/injecting-services-in-T5-tp15637694p15641994

Re: injecting services in T5

2008-02-22 Thread Howard Lewis Ship
This is a big stumbling point in Tapestry that injection is different from components (including pages, mixins, and base component classes) and for services. Injection for services is part of the Inversion of Control container, and its a bit less "magic". Tapestry takes it as far as providing the

Re: injecting services in T5

2008-02-22 Thread Ted Steen
You can only use @Inject in classes that are under the control of tapestry. that is classes under .base .components and .pages If you want to use services in other classes you have to inject them yourself. see http://tapestry.apache.org/tapestry5/tapestry-ioc/index.html 2008/2/22, Mahen Perera <

injecting services in T5

2008-02-22 Thread Mahen Perera
Hi all, A quick one, Can we inject services using @Inject in any class,, or is it restricted to only Page classes. I mean classes which are in web.pages package. Thanks in advance for all replies. The information contained in this email is strictly confidential and for the use of t