[displaytag-user] TableDecorator question with 1.1 upgrade
Brought to you by:
fgiust
From: Tom <dis...@ea...> - 2007-04-18 18:30:17
|
Displaytag 1.0 has been working great for us but we finally decided to upgrade to 1.1 to take advantage of external sorting. However, after following the steps listed here: http://displaytag.sourceforge.net/11/migrating.html the decorating that happens in our TableDecorators does not appear on the rendered page. Strangely if I examine the rows in a debugger, they are clearly being modified in the TableDecorator - it just doesn't get displayed on the page. Any ideas what I am doing wrong? I'll attach some example code below that functions fine for us in 1.0 but not in 1.1 Thanks in advance, Tom import org.displaytag.decorator.TableDecorator; import java.util.LinkedHashMap; public class DrillDownTableDecorator extends TableDecorator { private int rowCounter = 0; public String startRow() { rowCounter++; LinkedHashMap map = (LinkedHashMap) getCurrentRowObject(); Integer rowNumOffset = (Integer) map.get("rowNumOffset"); if (rowNumOffset == null) { rowNumOffset = new Integer(0); } map.put("rowNum", String.valueOf(rowCounter + rowNumOffset.intValue())); return ""; } public void finish() { rowCounter = 1; } } |