i am using Primefaces 2.2.M1. I think i detected a bug about emptyMessage attribute of DataTable.
When i set rows attribute to a non-zero value, emptyMessage is not rendered with an emtpy List due to this code in DataTableRenderer.java :
Code: Select all
int rows = table.getRows();
int first = table.getFirst();
int rowCountToRender = rows == 0 ? table.getRowCount() : rows;
if(rowCountToRender != 0) {
....