-
1. Re: Equivalent of Seam 2 Component
ssachtleben.ssachtleben.gmail.com Mar 1, 2011 5:25 AM (in response to idyoshin)@Inject SomeController controller;
equals to Component.getInstance(SomeController.class). Component wasnt typesafe anways...
-
2. Re: Equivalent of Seam 2 Component
idyoshin Mar 1, 2011 6:51 AM (in response to idyoshin)I understand that.
What I'm talking about: I've been able to receive the component in non-managed bean. For example entityBean, which is not managed by seam (now cdi) container.
-
3. Re: Equivalent of Seam 2 Component
lightguard Mar 1, 2011 10:38 AM (in response to idyoshin)I remember hearing something about this, but I don't remember where it ended up, I think Stuart could comment on this. It very well may be possible, but might need a bit of a bridge of the two technologies.
-
4. Re: Equivalent of Seam 2 Component
bjoice Sep 30, 2011 4:49 AM (in response to idyoshin)In case I have to replace the below in SEAM3 :
EntityManager entityManager = (EntityManager) Component.getInstance(
em
); (org.jboss.seam.Component)Then what will be the equivalent.
And also for @org.jboss.seam.annotations.faces.Converter and @Transactional
-
5. Re: Equivalent of Seam 2 Component
hantsy Sep 30, 2011 6:36 AM (in response to idyoshin)there is no Component in seam3...use BeanManager to find bean manually.
or use @Inject on a bean property directly. -
6. Re: Equivalent of Seam 2 Component
lightguard Sep 30, 2011 1:16 PM (in response to idyoshin)
b jj wrote on Sep 30, 2011 04:49:
In case I have to replace the below in SEAM3 :
EntityManager entityManager = (EntityManager) Component.getInstance(em
); (org.jboss.seam.Component)
Then what will be the equivalent.
And also for @org.jboss.seam.annotations.faces.Converter and @TransactionalPlease read the Seam Persistence docs for how to create a producer for the entity manager, and declarative transactions. As for the Converter JSF 2 has an annotation for that, you can also take a look at the Seam Faces docs.
-
7. Re: Equivalent of Seam 2 Component
bjoice Oct 3, 2011 7:36 AM (in response to idyoshin)what will be the equivalent for @Converter.
-
8. Re: Equivalent of Seam 2 Component
lightguard Oct 3, 2011 1:59 PM (in response to idyoshin)
b jj wrote on Oct 03, 2011 07:36:
what will be the equivalent for @Converter.