I know you can use them on the same field in pages/components, I was trying to offer an alternate way of getting the instance of the service setup correctly (by using IoC) instead of using a getter with side-effects as suggested in an earlier post. ;)
-- Chris On Wed, Jan 23, 2013 at 12:59 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 22 Jan 2013 20:43:15 -0200, Chris Poulsen <mailingl...@nesluop.dk> > wrote: > > One could also @Inject CelebrityService into a @Property i suppose? >> (Using Tapestry IoC to manage the licecycle of the service). >> > > Yep. You can use @Inject and @Propert in the same field just fine. Of > course, @Property will only work in classes instantiated by Tapestry (the > web framework, not Ioc): pages, components and mixins. > > -- > Thiago H. de Paula Figueiredo > > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org> > For additional commands, e-mail: users-h...@tapestry.apache.org > >