yes - i sent this message a while ago from a different box (it looks like the sending process failed initially - so it was (re-)sent a bit too late...)
you are welcome! regards, gerhard 2012/11/20 Howard W. Smith, Jr. <[email protected]> > Gerhard, > > Thanks for the response. I've actually progressed quite well with migration > to TomEE and CDI. I'm sure you will see my emails here on this mailing list > of any/all questions that I have. > > I want to thank you all for the responses. This actually is the first forum > where I get responses almost immediately and almost with every email that I > send to the mailing list. > > I am still in the progress of migrating from Glassfish 3.1.2.2 and JSF > managed beans to TomEE/OpenEJB/OpenWebBeans/CDI, and apache user groups > have been a huge help so far. So thanks! :) > > Howard > > > On Tue, Nov 20, 2012 at 3:23 PM, Gerhard Petracek <[email protected] > >wrote: > > > hi howard, > > > > @ codi (documentation and setup): > > see [1] (and e.g. [2]) > > > > + you can generate a simple demo e.g. with > > mvn archetype:generate -DarchetypeCatalog= > > http://people.apache.org/~gpetracek/myfaces/ > > (it's a subset of mvn archetype:generate -DarchetypeCatalog= > > http://myfaces.apache.org) > > > > and as suggested by mark, you can have a look at tomee. > > > > regards, > > gerhard > > > > [1] https://cwiki.apache.org/confluence/display/EXTCDI/Index > > [2] https://cwiki.apache.org/confluence/display/EXTCDI/Module+Overview > > > > > > > > 2012/11/17 Howard W. Smith, Jr. <[email protected]> > > > > > Web application details: > > > JSF 2.1, MyFaces 2.1.9, PrimeFaces 3.4.1 (or 3.5-SNAPSHOT), Glassfish > > > 3.1.2.2 (build 5), JUEL 2.2.5 > > > > > > From server log: > > > INFO: WELD-000900 1.1.8 (Final) > > > > > > Yesterday, I started migrating from JSF Managed Beans to CDI Managed > > Beans. > > > I referred to Chapter 28 (CDI) of Oracle's Java EE 6 > > > Tutorial<http://docs.oracle.com/javaee/6/tutorial/doc/giwhb.html>as > > > well as many other pages I found on the internet. > > > > > > Finally, the app starts, as I think I completed most steps necessary to > > > migrate to CDI managed beans, but now it seems as though my beans are > not > > > accessible from facelets. As per > > > MYFACES-3104<https://issues.apache.org/jira/browse/MYFACES-3104>, > > > I am already using *JUEL 2.2.5* (that is working well with JSF Managed > > > Beans in production), so I already had * > > > org.apache.myfaces.EXPRESSION_FACTORY* set in web.xml, as well as > > > *org.apache.myfaces.SUPPORT_JSP_AND_FACES_EL > > > *to *false*, and the last thing I did was add the following to web.xml: > > > > > > <context-param> > > > > > > <param-name>org.apache.myfaces.annotation.SCAN_PACKAGES</param-name> > > > <param-value>pf,jsf.users,jsf.orders</param-value> > > > </context-param> > > > > > > Which are just a 'few' of the packages that contained beans referenced > by > > > the initial page of the app (login.xhtml). > > > > > > My questions: > > > > > > 1. Can someone please advise me of blog/tutorials that list any/all > > > steps necessary to migrate MyFaces 2.1.9 / Glassfish 3.1.2.2 web app > > > from > > > JSF Managed Beans to CDI? > > > 2. I am not using MyFaces CODI or OpenWebBeans (yet). I've seen > > > OpenWebBeans recommended with MyFaces Core (2.1.7+) for performance > > > reasons, and in PrimeFaces forum, I've seen MyFaces Core and MyFaces > > > CODI > > > used together by some people. If I should use MyFaces CODI or > > > OpenWebBeans, > > > please reply with blog/tutorial/instruction URLs. > > > > > > My next steps will probably be any/all of the following: > > > > > > 1. Remove JUEL 2.2.5 from the project, and see if I can successfully > > get > > > my pages to render via CDI > > > 2. Add MyFaces CODI (need to search for a good set of instructions > on > > > how to do so) > > > 3. Add OpenWebBeans (same as above, need good set of instructions) > > > > > > Please confirm/advise. If you need any more details from me (for > example, > > > for me to reply with my web.xml), then please let me know. > > > > > > Thanks, > > > Howard > > > > > >

