我有 jsf 2.2 应用程序
我渲染了一个像这样的li列表
<ui:repeat var="item" value="#{handler.list}">
<li><h:outputLink value="#{urlHandler.getUrl(item)}">#{item.title}</h:outputLink></li>
</ui:repeat>
但不知何故它呈现为
<ul class="breadcrumbs">
<ui:repeat><li><a href="xxx">l1</a></li></ui:repeat>
<ui:repeat><li><a href="xxx">123</a></li></ui:repeat>
</ul>
我正在使用
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.2.0</version>
</dependency>
有什么想法吗?
编辑命名空间:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:fn="http://xmlns.jcp.org/jsp/jstl/functions"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
最佳答案
这是一个错误,现已在最新的 2.2.2-SNAPSHOT 中修复
关于repeat - ui :repeat in jsf 2. 2 正在工作但已呈现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17361528/