no records found

UI Components for JSF
Post Reply
balajiganesh
Posts: 4
Joined: 26 Apr 2011, 11:26

26 Apr 2011, 11:37

how to display no Records found message in center of the data table

primeuser2412
Posts: 23
Joined: 18 Mar 2011, 03:49

26 Apr 2011, 15:03

You can use the emptyMessage property of Primefaces dataTable component like:

Code: Select all

<p:dataTable emptyMessage="#{msg.RESULT_NONE}">
where msg.RESULT_NONE is value-pair entry in your resource bundle. The benefit of using resource bundle is that you can internationalise your web application i.e. provide support for many languages like English, French, Spanish, etc.

Or, you just have a literal String value like:

Code: Select all

<p:dataTable emptyMessage="No records found.">
Hope it helps.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

26 Apr 2011, 15:49

DId you read the question? :D
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Arcads
Posts: 1
Joined: 24 Apr 2011, 23:28
Location: United States
Contact:

26 Apr 2011, 16:04

DId you read the question?

jscabuzzo
Posts: 1
Joined: 23 May 2013, 21:53

23 May 2013, 21:55

<p:dataTable emptyMessage="No records found." style="text-align: center;">

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 51 guests