Posted by mriem
on October 30, 2013 at 5:38 AM PDT
Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog
Since JSF 2.2 we consider the old style @ManagedBean annotation deprecated, but what now you would say? Well it is pretty straightforward.
1. Change @ManagedBean(name="xxx") to @Named("xxx")
2. Change the package imports for your @XXXScoped annotations to the CDI equivalents.
Note JSF 2.2 supports more scopes, but they are new so they are not mentioned in the table above. Future blog entries will touch on those new scopes.
And that is it.