As a brief followup to this question, after stepping through the
displaytag code it appears that the currentRowValues are populated
before the TableDecorator startRow() is called. Does this mean that
changes made to the getCurrentRowObject() object in the TableDecorator
will not be reflected in the currentRowValues? Are the currentRowValues
the values that get displayed?

Thanks,
Tom

On Wed, 2007-04-18 at 11:30 -0700, Tom wrote:
> 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;
>       }
> }
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to