converter="entityConverter"
和converter="#{entityConverter}"
之间有什么区别吗?最初,我的应用程序与这样的代码一起运行得很顺畅:
<p:selectOneMenu id="civilityId"
value="#{customerController.selected.civilityId}"
converter="civilityConverter"> ...
但是当我将 converter="civilityConverter"
改为 converter="#{civilityConverter}"
后,我得到了如下错误:
Grave: Error Rendering View[/customer/index.xhtml]
javax.el.PropertyNotFoundException: /customer/Edit.xhtml @30,186
value="#{customerController.selected.civilityId}":
Target Unreachable, 'null' returned null
感谢任何帮助。