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: [email protected]
> For additional commands, e-mail: [email protected]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to