Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a p:dataTable:



When i start a new search, if none register returns, the dataTable show a message "No records found.", is there a way to a dataTable just show a empty message, only the empty list ?


If it's relevant i'm using primefaces 4.0



Thanks in advance.
 
J Miller
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if I'm understanding your question correctly, you do not want an error message to show up when you perform a search and no records are found. This can be accomplished with the emptyMessage attribute of the primefaces datatable:

 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly J Miller, thanks a lot !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!