【发布时间】:2013-09-20 18:40:10
【问题描述】:
我有一个看起来像这样的 JSF 文件:
<ui:repeat value="child.compoundQuestion.questions" var="question">
<h:outputText value="#{question.display}"/>
</ui:repeat>
child.compoundQuestion.questions返回Question类型的对象列表,这是一个简单的包装POJO。
不幸的是,我在控制台中看到了这个:
javax.el.PropertyNotFoundException: /resources/employer/file.xhtml @66,58 value="#{question.display}": The class 'java.lang.String' does not have the property 'display'.
我不知道我做错了什么。我找到了this page,但从未调用过questions setter。基于其他对象的行为方式与我在代码中其他地方的预期方式相同(这是一个非常成熟的应用程序),I'm pretty sure I have the correct tag library. 还有什么可能导致这种情况?
【问题讨论】:
标签: jsf