问题
My p:dataTable
has 3 columns:
<p:dataTable
id="producaoDataTable"
value="#{clienteMB.producaoList}"
var="producao">
<p:column
headerText="Especialidade"
groupRow="true">
<h:outputText value="#{producao.modalDesc()}" />
</p:column>
<p:column
headerText="Dente"
groupRow="true">
<h:outputText value="#{producao.dente}" />
</p:column>
<p:column
headerText="Procedimento"
groupRow="true">
<h:outputText value="#{producao.utDesc()}" />
</p:column>
</p:dataTable>
While groupRow
works fine for the first p:column
, that doesn't work for the second one and works partially for the third one:
Is there a way to solve that?
回答1:
Possibly fixed in version 6.1.1:
Datatable Column groupRow Row Spans Incorrect Column If More Than One Column Marked as Grouped #2210
Unfortunately, that's not available for the community. The same fix will be in the upcoming 6.2 release.
来源:https://stackoverflow.com/questions/46435651/grouprow-attribute-doesnt-work-correctly-for-some-columns-of-pdatatable