【发布时间】:2018-07-13 05:02:13
【问题描述】:
我想在复合组件中创建一个简单的 for 循环。 我有一个组件应该显示一个字符 n 次。这似乎是最简单的情况。我不确定我做错了什么。
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:composite="http://xmlns.jcp.org/jsf/composite"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<composite:interface>
<composite:attribute name="length" required="true" shortDescription="The length of the anonymized text"/>
</composite:interface>
<composite:implementation>
<c:forEach begin="0" end="#{cc.attrs.length}">•</c:forEach>
</composite:implementation>
</ui:composition>
这个错误:
javax.faces.FacesException: Error Instantiating: com.sun.faces.facelets.tag.composite.ImplementationHandler
【问题讨论】:
标签: jsf primefaces jsf-2.2 composite-component