且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法访问非托管Bean类内的托管属性吗?

更新时间:2021-10-23 01:53:52

如果在访问其属性

If you are sure that bean is alive when you are accessing its property you can fetch it from FacesContext and access its property, but you can't inject a managed bean as property in a normal Java class.