Gotta say, it's really confusing that @InjectService doesn't work with
components, but @Inject @Service does.

-james

On Mon, Dec 15, 2008 at 3:20 AM, Martijn Brinkers <martijn.l...@gmail.com>wrote:

> It seems that @Id an only be used for injecting a Block.
>
> >From javadoc: "Currently, this is used when injecting a {...@link Block}."
>
> Martijn
>
> On Sun, 2008-12-14 at 21:06 +0800, d0ng wrote:
> > Hi,
> > I want to inject a service in a page with service id,when I use
> > @Inject
> > @Id("serviceid")
> >
> > It seems that does not inject the service with "serviceid".
> >
> > Instead of use
> >
> > @Inject
> > @Servcie("serviceid")
> >
> > It works well.
> >
> > Does the @Id annotation can't be used in a page class?
> >
> > Thanks.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
James A. Hillyerd <ja...@hillyerd.com>

Reply via email to