* @param buffer the buffer to render the totals footer to
*/
private void renderTotalHoldingsFooter(HtmlStringBuffer buffer) {
double total = 0;
for (int i = 0; i < table.getRowList().size(); i++) {
Customer customer = (Customer) table.getRowList().get(i);
if (customer.getHoldings() != null) {
total += customer.getHoldings().doubleValue();
}
}
String format = "<b>Total Holdings</b>: ${0,number,#,##0.00}";
String totalDisplay = MessageFormat.format(format, new Object[] { new Double(total) });