repeat - ui :repeat in jsf 2. 2 正在工作但已呈现

标签 repeat jsf-2.2

我有 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/

相关文章:

python - 如何使用Python中的函数连续扩展列表?

python - 附加到数组的 Numpy 重复数组?!这里的语法是什么?

javascript - 在 CSS 中重复图像的一部分

string - Lua:string.rep嵌套在string.gsub中?

java - 寻找快乐的数字

maven - 建议的 JSF 与 TomEE1.7.x 的依赖关系是什么?

css - 从 p :layout 中删除排水沟

jsf - 监听器排序后 PrimeFaces DataTable 渲染列表错误(bug?)

java - 简单的 CDI 注入(inject)出现问题...在 SessionScoped Controller bean 中使用 @Inject 时出现 "Passivation"相关错误

jsf - 文件上传不适用于 PrimeFaces 4.0/JSF 2.2.x 中的 AJAX - javax.servlet.ServletException : The request content-type is not a multipart/form-data