开发者

ui: repeat not working with a p: datatable

I just read the related question why-doesnt-hdatatable-inside-uirepeat-get-correct-id

I have a list of PrimeFaces datatable on my bean, and I want to use ui:repeat to cycle through all these tables.. However the iteration is not working..

Any ideas?

My relevant piece of code is the following:

<ui:repeat id="searchTables"
                   value="#{searchBean.resultList}"
                   v开发者_Python百科ar="currentListOfLists">
            <p:dataTable id="bindedTable"
                         binding="#{currentListOfLists}"
                         var="currentList"/>
        </ui:repeat>


Your dataTable does not have a value which the iteration is to be done on.

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

The binding attribute is used to link the dataTable to a property in a backing bean.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜