JSF Tip #30 - Migrate your ManagedBean to Named annotations
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.