groupRow属性对于p:dataTable的某些列无法正常工作 [英] groupRow attribute doesn't work correctly for some columns of p:dataTable

查看:52
本文介绍了groupRow属性对于p:dataTable的某些列无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 p:dataTable 有3列:

 < p:dataTable 
id = producaoDataTable
value =#{clienteMB.producaoList}
var = producao>
< p:列
headerText = Especialidade
groupRow = true>
< h:outputText value =#{producao.modalDesc()} />
< / p:列>
< p:列
headerText = Dente
groupRow = true>
< h:outputText value =#{producao.dente} />
< / p:列>
< p:列
headerText = Procedimento
groupRow = true>
< h:outputText value =#{producao.utDesc()} />
< / p:列>
< / p:dataTable>

虽然 groupRow 对于第一个 p:column ,它不适用于第二个,而部分适用于第三个:





有没有办法解决?

解决方案

可能已在6.1.1版中修复:



数据表列组行跨度不正确的列(如果多个列标记为分组#2210

不幸的是,这不适用于社区。相同的修复将在即将发布的6.2版本中进行。


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?

解决方案

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.

这篇关于groupRow属性对于p:dataTable的某些列无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆