Hi
I have used groupTable to display composit entities where I want the data is displayed in pages.
I have checked “rowcount” in xml file as follows:

but the whole table with >300 rows is loaded at run-time.
Here is the xml codes look like for the groupTable:
<groupTable id="realEstateProjectCostMeasureGroupTable"
editable="true"
height="100%"
width="100%">
<actions>
<action id="create"
invoke="onAddMeasure"/>
<action id="edit"
openType="DIALOG"/>
<action id="remove"/>
</actions>
<columns>
<column id="realEstateProjectWorkType"/>
<column id="realEstateProjectWorkJob"/>
<column id="description"/>
</columns>
<rows datasource="realEstateProjectCostMeasureDs"/>
<rowsCount/>
</groupTable>
I have tried the following codes in the controller but getting NPE in the last line:
RowsCount rowsCount = componentsFactory.createComponent(RowsCount.class);
rowsCount.setAlignment(Alignment.BOTTOM_RIGHT);
rowsCount.setDatasource(realEstateProjectCostMeasureDs);
rowsCount.setOwner(realEstateProjectCostMeasureTable);
realEstateProjectCostMeasureDs.setMaxResults(50);
rowsCount.setDatasource(realEstateProjectCostMeasureDs);
realEstateProjectCostMeasureTable.setRowsCount(rowsCount);