我正在尝试使用rich:datatable中的rich:subtables从主列表中打印多个列表
以下代码显示主数据表,并带有两个子表:
<rich:dataTable styleClass="table table-bordered" value="#{PowerOfAttorneyController.gpaAndExecutorList}" var ="gpaAndExecutor">
<f:facet name="header">
<rich:columnGroup>
<rich:column colspan="3">
<h:outputText value="Executed by" />
</rich:column>
<rich:column colspan="3">
<h:outputText value="POA" />
</rich:column>
<rich:column breakBefore="true">
<h:outputText value="Name" />
</rich:column>
<rich:column>
<h:outputText value="Father/Husband Name" />
</rich:column>
<rich:column>
<h:outputText value="CNIC" />
</rich:column>
<rich:column>
<h:outputText value="Name" />
</rich:column>
<rich:column>
<h:outputText value="Father/Husband Name" />
</rich:column>
<rich:column>
<h:outputText value="CNIC" />
</rich:column>
</rich:columnGroup>
</f:facet>
<rich:subTable var="executor" value="#{gpaAndExecutor.ownerexecutedBylist}">
<rich:column>
<h:outputText value="#{executor.personName}"></h:outputText>
</rich:column>
<rich:column>
<h:outputText value="#{executor.fatherHusbandName}"></h:outputText>
</rich:column>
<rich:column>
<h:outputText value="#{executor.nicNo}"></h:outputText>
</rich:column>
</rich:subTable>
<rich:subTable
var="poa" value="#{gpaAndExecutor.plotOwnerPoaList}">
<rich:column>
<h:outputText value="#{poa.personName}"></h:outputText>
</rich:column>
<rich:column>
<h:outputText value="#{poa.fatherHusbandName}"></h:outputText>
</rich:column>
<rich:column>
<h:outputText value="#{poa.nicNo}"></h:outputText>
</rich:column>
</rich:subTable>
</rich:dataTable>
两个列表都开始显示在相同的前三列中,这些列在标题中被引用为由执行。我希望第二个列表在接下来的三列中显示,因为它引用了 POA 标题。