简体   繁体   English

如何使用 <ui:repeat> 数据列表中的标签:primefaces mobile?

[英]How to use <ui:repeat> tag inside datalist: primefaces mobile?

Sorry im just a beginner both in english and primefaces mobile. 对不起,我只是英语和primefaces mobile的初学者。

I want to use ui:repeat within a datalist to do something like: 我想在数据列表中使用ui:repeat做类似的事情:

<p:dataList id="data" var="tache" value="#{affect.listeDesTaches}">
                       <p:panel id="basic" header="Taches n° #{tache.idTache}"  style="padding-bottom:40px">
                            <ui:repeat id="etapesId" var="etapes" value="#{taches.liste}" >

                               <p:panelGrid columns="6">

                                    <p:commandButton value="#{etapes.idEtape}"  type="button"/>
                                    <p:commandButton value="#{etapes.name}" type="button"/>
                                    <p:commandButton value="#{etapes.description}" type="button"/>
                                    <p:commandButton value="#{etapes.dimension}" type="button"/>
                                    <p:commandButton value="#{etapes.tempsFab}" type="button"/>
                                    <p:commandButton value="#{etapes.reste}" type="button"/>
                                </p:panelGrid>    

                        </ui:repeat>
                        </p:panel>
                </p:dataList>

but it not working in primefaces mobile.I have no error message and all the information in the interior of "ui-repeat" are not displayed. 但它不能在primefaces mobile中工作。我没有错误消息,并且不会显示“ ui-repeat”内部的所有信息。 please help. 请帮忙。 PS: i'm using primefaces mobile 0.9.4 and primefaces 5.0 PS:我正在使用primefaces mobile 0.9.4和primefaces 5.0

there is a typo. 有一个错字。 please use value="#{tache.liste}" instead of value="#{taches.liste}" . 请使用value="#{tache.liste}"而不是value="#{taches.liste}"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM