Primefaces p:dataTable 显示时没有消息 "No records found."?

Primefaces p:dataTable showing without message "No records found."?

我有一个p:dataTable:

<p:dataTable var="ind" value="#{logIndPersistBean.list}" paginator="true" rows="10"
                        id="table"  rowStyleClass="odd-row, even-row">

                        <f:facet name="header">
                            List of Logs
                        </f:facet>

                        <p:column headerText="Name" >
                            <h:outputText value="#{ind.name}"/>
                        </p:column>

                        <p:column headerText="Date" >
                            <h:outputText value="#{ind.date}" />
                        </p:column>

                        </p:column>

                </p:dataTable>

当我开始新的搜索时,如果 none 注册 returns,dataTable 显示一条消息 "No records found.",有没有办法让 dataTable 只显示一条空消息,只有空列表?

如果相关,我正在使用 primefaces 4.0

提前致谢。

将 emptyMessage="" 添加到您的数据 table 属性。