我需要一些帮助,因为我需要在我的页面中创建动态表,为此我使用 ui:repeat 标记。这是我在 jsf 文件中的代码:
<ui:define name="contenido">
<p:fieldset legend="Cronograma">
<ui:repeat value="#{cronogramaBean.cronogramaBB.listaParciales}" var="parciales">
<br/>
<p:dataTable id="tablaPacial"
value="#{**here I want to use the same item in the list that I use in the Ui:repeat**}"
var="parcial"
emptyMessage="No existen registros"
rows="10"
rowIndexVar="rowIndex"
sortBy="#{parcial.ordinal}" sortOrder="ascending"
style="overflow: auto">
<f:facet name="header">
<p:outputLabel value="#{parcial.ciclo.nombre}"/>
</f:facet>
<p:column headerText="Nº"
style="text-align: center; width: 20px">
<h:outputText value="#{rowIndex+1}"/>
</p:column>
<p:column headerText="Nombre"
style="width: 100px">
<h:outputText value="#{parcial.nombre}"/>
</p:column>
</p:dataTable>
</ui:repeat>
</p:fieldset>
</ui:define>
ui:repat 标记需要在值中包含一个列表和一个 var 来迭代列表,在 ui:repeat 内我想创建具有相同列表的表。这可能吗?我怎么能这样做?