【发布时间】:2016-02-15 23:27:09
【问题描述】:
我正在尝试重现以下example,但在dynamicFieldList.xhtml 中未检测到#{cc.table},并且出现以下错误:
/WEB-INF/tags/dynamicFieldList.xhtml @17,93 binding="#{cc.table}": Target Unreachable, identifier 'cc' resolved to null
下面是这行代码
<ui:composition
...
xmlns:cc="http://java.sun.com/jsf/composite">
...
<cc:implementation>
<h:dataTable id="table" binding="#{cc.table}" value="#{cc.attrs.value}" var="field">
<h:column><h:outputLabel value="#{field.label}" /></h:column>
// ...
</cc:implementation>
...
可能与同一问题有关,但也未检测到“字段”类的 outputLabel 中的标签和值字符串。这可能是什么原因?
【问题讨论】:
-
复合组件不是标记文件。将 [composite-component] 标签悬停在问题下方,直到出现弹出框,然后单击其中的 info 链接。
-
@BalusC:感谢您的指导
标签: jsf jsf-2.2 composite-component