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

2

And I have a p: dataTable:

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

                        <f:facet name="header">
                            Lista de Log
                        </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>

When I run a new search, if I do not return any records, the dataTable displays the message "No records found." Is there any way I do not have to display this message, just the empty list?

I'm using 4.0 primefaces.

Thank you in advance!

    
asked by anonymous 19.08.2015 / 16:48

1 answer

6

This message is controlled by attribute % with% with%. By default the value of the attribute is "No Records Found", but nothing prevents you from changing this message:

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