-
31 votesanswersviews
为什么@PostConstruct回调每次都会触发,即使bean是@ViewScoped? JSF
我在页面上使用datatable并使用绑定属性将其绑定到我的支持bean . 这是我的代码: - <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xh... -
0 votesanswersviews
如果我在后构造类中调用一个方法,则不会注入spring bean
我正在对我的jsf托管bean属性进行spring bean注入,我得到了上面提到的错误 . 以下是完整堆栈跟踪: SEVERE: Error Rendering View[/sample.xhtml] javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [...