1

i'm using primefaces

whan the List of an p:dataTable is empty it shows

"No records found."

how can i translate it to an other language?

i found datatable uses

public java.lang.String getEmptyMessage() {
    return (java.lang.String) getStateHelper().eval(PropertyKeys.emptyMessage, "No records found.");
}

so i tried adding the key emptyMessage to my message-properties, but this didn't help

4

1 回答 1

2

您可以在 xhtml 中设置属性:

<p:dataTable emptyMessage="#{msg['your.resourcebundlekey']}">
于 2013-04-12T11:43:01.880 回答