DataTable empty message problem

UI Components for JSF
Post Reply
xodarapus
Posts: 3
Joined: 06 Dec 2010, 16:47

06 Dec 2010, 16:57

Hi,
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) {
        ....
emptyMessage is bind to table.getRows(). It should be bound to table.getRowCount()

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 39 guests