0

我正在尝试建立双向数据绑定,如下所示:

<h:outputText value="#{cc.getAspect('meta').metaInfo.previousValue}" />

但是我得到了以下异常,但只有在回写时(加载页面时该值最初显示得很好):

Caused by: javax.el.PropertyNotFoundException: /resources/meta.xhtml @23,124 
value="#{cc.getAspect('meta').metaInfo.previousValue}":
The class 'org.foo.client.jsf.UIComponent' does not have the property 'getAspect'.

现在我想知道:

1)该getAspect方法肯定存在(仔细检查,毕竟它也适用于阅读)。JSF 是否通过“属性”表示“字段”并且实际上是在隐式尝试访问setgetAspect或其他东西?如果是这样,为什么?

2)为什么它甚至会首先尝试编写,即访问setter getAspect?唯一应该写入或应该写入的值是previousValue,位于对象路径的下方,该路径cc.getAspect('meta').metaInfo.previousValue仅通过 getAspect读取元方面。

任何想法都非常感谢,谢谢

编辑:环境:JBoss EAP 6.1.0.GA,JSF 实施:Mojarra 2.1.19

4

0 回答 0