How to use Table.RowGenerator to generate row for sub totals

Hi, I tried to use
@Override
public GeneratedRow generateRow(Table table, Object itemId) {
return new GeneratedRow(“subtotal”,“888”);
}

it is neither showing error nor displaying row. where am i doing Wrong??

Hi
I am also facing similar kind of problem . I need to generate only one row but it replacing all the rows in JPA Container table.
Is it possible to create only one row, can you give some suggestions?

You need an item in your container for the item to replace with the generated row. Then check for its ID to only return a GeneratedRow in that case. For other IDs (if I remember correctly), you should return null to indicate this is not a generated row.