I'm getting the following error when trying to use the the callbacks feature of the display tag library to show totals:
java.lang.ClassCastException: [Ljava.util.SortedMap; at org.displaytag.decorator.TotalTableDecorator.finishRow(TotalTableDecorator.java:168) Here's a snippit of the code from the JSP page: <sql:query var="result" scope="session"> SELECT * FROM PROJECTS </sql:query> <display:table name="sessionScope.result.rows" class="displaytag" export="true" sort="list" pagesize="35" decorator="org.displaytag.decorator.TotalTableDecorator"> <display:column property="COUNTRY" title="Country" group="1" sortable="true" headerClass="sortable"/> <display:column property="STATE" title="State" group="2" sortable="true" headerClass="sortable"/> <display:column property="CITY" title="City" group="3" sortable="true" headerClass="sortable"/> <display:column property="PROJECT_ID" title="Project ID" sortable="true" headerClass="sortable"/> <display:column property="PROJECT_NAME" title="Project Name" sortable="true" headerClass="sortable"/> <display:column property="ESTIMATED_COST" title="Estimated" sortable="true" headerClass="sortable" decorator="com.foo.project.view.decorator.CurrencyDecorator" total="true"/> <display:column property="ACTUAL_COST" title="Actual" sortable="true" headerClass="sortable" decorator="com.foo.project.view.decorator.CurrencyDecorator" total="true"/> </display:table> Here's line 168 of the TotalTableDecorator class that's causing the class cast exception: if (getViewIndex() == ((List) getDecoratedObject()).size() - 1) Any help on a workaround would be much appreciated. Thanks! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user