groupRow attribute doesn't work correctly for some columns of p:dataTable

强颜欢笑 提交于 2019-12-25 11:06:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!