no records found
-
- Posts: 4
- Joined: 26 Apr 2011, 11:26
how to display no Records found message in center of the data table
-
- Posts: 23
- Joined: 18 Mar 2011, 03:49
You can use the emptyMessage property of Primefaces dataTable component like:
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:
Hope it helps.
Code: Select all
<p:dataTable emptyMessage="#{msg.RESULT_NONE}">
Or, you just have a literal String value like:
Code: Select all
<p:dataTable emptyMessage="No records found.">
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
DId you read the question?
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
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
DId you read the question?
-
- Information
-
Who is online
Users browsing this forum: Google [Bot] and 51 guests