Cannot get table to paginate

I am unable to get my Table to paginate no matter what I do. I have tried setting rowsCount and useMaxResults to true, and still every single record shows up on the table (200+). I have added a filter to it and still it fails to paginate. Am i missing anything. I have added the xml and java files associated with the table. The table in question has id = “productsTable”. BrandEdit.java (4.2 KB)
brand-edit.xml (3.3 KB)

Hi,

Unfortunately, I cannot reproduce the problem. Setting the maxResults attribute either in XML or Java Controller works for me.

XML

<collectionDatasource id="customersDs"
                      class="com.company.sales.entity.Customer"
                      maxResults="50"
                      view="_local">
    <query>
        <![CDATA[select e from sales$Customer e]]>
    </query>
</collectionDatasource>

Java

public class CustomerBrowse extends AbstractLookup {
    @Inject
    private CollectionDatasource<Customer, UUID> customersDs;

    @Override
    public void init(Map<String, Object> params) {
        customersDs.setMaxResults(50);
    }
}

From attached files, I see that you don’t define maxResult. If the maxResult attribute doesn’t work for you, please attach a sample project, so I will be able to investigate it the problem.

Regards,
Gleb