http://tapestry.apache.org/tapestry5/tapestry-spring/

Last section at the bottom: "Limitations"

Only the bean name is used, not any of the bean's aliases.

On Sun, Mar 2, 2008 at 9:01 AM, Steph <[EMAIL PROTECTED]> wrote:
> I can easily inject a service A defined in Spring like that :
>     <bean id="A" class="..."/>
>  in my tap pages :
>     @Inject
>     @Service("A")
>     private MyObject a;
>  That works fine.
>
>  But if i declare in Spring an alias B on my bean A :
>     <alias name="A" alias="B"/>
>  when i try to inject my bean B in my tap pages :
>     @Inject
>     @Service("B")
>     private MyObject b;
>  Tapestry can't find this service  and i get the following exception :
>  org.apache.tapestry.internal.services.TransformationException: Error
>  obtaining injected value for field
>  com.cariboonetworks.ads.pages.MyPage.b: Service id 'B' is not defined by
>  any module.
>
>  Any idea ??
>
>  Stephane
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to