ui:重复不使用p:datatable

时间:2011-02-07 20:36:18

标签: jsf primefaces

我刚读了相关的问题 why-doesnt-hdatatable-inside-uirepeat-get-correct-id

我的bean上有一个PrimeFaces数据表列表,我想使用ui:repeat循环遍历所有这些表。但迭代不起作用..

有什么想法吗?

我的相关代码如下:

<ui:repeat id="searchTables"
                   value="#{searchBean.resultList}"
                   var="currentListOfLists">
            <p:dataTable id="bindedTable"
                         binding="#{currentListOfLists}"
                         var="currentList"/>
        </ui:repeat>

1 个答案:

答案 0 :(得分:1)

您的dataTable没有要进行迭代的值。

<p:dataTable value="#{currentListOfLists}" var="currentList">

binding属性用于将dataTable链接到辅助bean中的属性。