Primefaces Reflow Table - 空消息在第一列 header 文本之后开始
Primefaces Reflow Table - Empty message begins after the first column header text
我正在尝试使用 primefaces 让我的页面响应。但是我在使用 tables 时遇到了一些麻烦,特别是当 tables 为空时。
这是我的 table 代码:
<p:dataTable id="tabela"
var="minLote"
value="#{associarLoteBean.minLotes}"
rowKey="#{minLote.idLote}"
selectionMode="single"
selection="#{associarLoteBean.minLoteSelecionado}"
paginator="true"
reflow="true"
emptyMessage="#{txt.no_herds_on_the_table}">
<p:ajax event="rowSelect" listener="#{associarLoteBean.onRowSelectDataTable}" />
<p:column headerText="#{txt.herd}"
filterBy="#{minLote.descricao}" filterStyle="display:none">
<h:outputText value="#{minLote.lote}" />
</p:column>
<p:column headerText="#{txt.property}"
filterBy="#{minLote.propriedade}" filterStyle="display:none">
<h:outputText value="#{minLote.propriedade}" />
</p:column>
<p:column headerText="#{txt.current_pasture}"
filterBy="#{minLote.pasto}" filterStyle="display:none">
<h:outputText value="#{minLote.pasto}" />
</p:column>
<p:column headerText="#{txt.animals_in_herd}"
filterBy="#{minLote.animais}" filterStyle="display:none">
<h:outputText value="#{minLote.animais}" />
</p:column>
</p:dataTable>
当 table 为空并且我减小浏览器屏幕的大小时,空消息显示在第一列 header 文本之后。关键是当屏幕为正常尺寸时,header 文本不会出现在空消息之前。
有人有解决这个问题的想法吗?
这已在 PrimeFaces 5.3.9 Elite 版本和即将发布的 6.0 中得到修复,您可以从 github
中的源构建快照版本
我正在尝试使用 primefaces 让我的页面响应。但是我在使用 tables 时遇到了一些麻烦,特别是当 tables 为空时。
这是我的 table 代码:
<p:dataTable id="tabela"
var="minLote"
value="#{associarLoteBean.minLotes}"
rowKey="#{minLote.idLote}"
selectionMode="single"
selection="#{associarLoteBean.minLoteSelecionado}"
paginator="true"
reflow="true"
emptyMessage="#{txt.no_herds_on_the_table}">
<p:ajax event="rowSelect" listener="#{associarLoteBean.onRowSelectDataTable}" />
<p:column headerText="#{txt.herd}"
filterBy="#{minLote.descricao}" filterStyle="display:none">
<h:outputText value="#{minLote.lote}" />
</p:column>
<p:column headerText="#{txt.property}"
filterBy="#{minLote.propriedade}" filterStyle="display:none">
<h:outputText value="#{minLote.propriedade}" />
</p:column>
<p:column headerText="#{txt.current_pasture}"
filterBy="#{minLote.pasto}" filterStyle="display:none">
<h:outputText value="#{minLote.pasto}" />
</p:column>
<p:column headerText="#{txt.animals_in_herd}"
filterBy="#{minLote.animais}" filterStyle="display:none">
<h:outputText value="#{minLote.animais}" />
</p:column>
</p:dataTable>
当 table 为空并且我减小浏览器屏幕的大小时,空消息显示在第一列 header 文本之后。关键是当屏幕为正常尺寸时,header 文本不会出现在空消息之前。
有人有解决这个问题的想法吗?
这已在 PrimeFaces 5.3.9 Elite 版本和即将发布的 6.0 中得到修复,您可以从 github
中的源构建快照版本