Java Programming 2 - JSF Managed Bean

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Great work, i wanna share this sentence from Apress Pro Jsf 2.2 with you: In future JSF specifications, the @ManagedBean will be deprecated so it is recommended to use the @Named CDI
(Context and Dependency Injection) annotation instead of the @ManagedBean. You should know that the @ManagedBean
is managed by the JSF framework, while the @Named annotation is not managed by the JSF framework. The @Named
annotation is managed by the JEE application server which supports CDI. One advantage of the CDI over the JSF
dependency injection is that in order to inject an instance using the CDI @inject annotation, this instance does not
require to be annotated with any specific annotation, while in JSF, the @ManagedProperty requires the bean to be
injected to be annotated with the @ManagedBean annotation.

haroldpepete
join shbcf.ru