This content has been marked as final.
Show 5 replies
-
1. Re: Question on Injecting
waynebagguley Mar 29, 2007 9:24 AM (in response to hasc)What's the question?
-
2. Re: Question on Injecting
hasc Mar 29, 2007 9:31 AM (in response to hasc)the question is how do i inject the list correctly.
I get the following error message:javax.el.ELException: /showitems.xhtml @17,54 value="#{itemsmanager.objects}": javax.ejb.EJBTransactionRolledbackException: org.jboss.seam.RequiredException: In attribute requires non-null value: itemsmanager.itemscache
thanks for helping -
3. Re: Question on Injecting
pmuir Mar 29, 2007 9:31 AM (in response to hasc)Try injecting ItemsCache not itemscache
-
4. Re: Question on Injecting
waynebagguley Mar 29, 2007 9:41 AM (in response to hasc)Ah yeah, well spotted pete.
The name of the injected field has to match the declaration in @Name
Change the code to:@Stateful @Name("itemsCache") public class ItemsCacheBean implements ItemsCache, Serializable { ... @Stateful @Name("itemsmanager") public class ItemsManagerBean implements ItemsManager, Serializable { @In(create=true) ItemsCache itemsCache;
-
5. Re: Question on Injecting
hasc Mar 29, 2007 9:58 AM (in response to hasc)eh... that was a stupid question of me.
thanks a lot for help.