Null pointer when autowiring the bean into JSF Managed bean

走远了吗. 提交于 2019-12-01 06:43:55
Ravi

You cannot inject a Spring bean like that in a JSF managed bean. Change it to

@ManagedBean(name="person")
@SessionScoped
Public class Person{

@ManagedProperty(value="#{email}")
private Email email ; // getter and setter for this.

}

See also:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!