I asked this a month or so ago but didn't receive a reply, so I thought I'd ask it again by describing it more clearly:
I want to make a reusable generic decorator which will always show, before the first row, a header-like row for adding a 'new' item. I want to be able to use this decorator with any table, no matter how many columns it needs to display. It needs to be able to detect the first row and print something before it, PLUS know how many columns are in this table displaytag so it can show the appropriate number of table cells. I can do the first part: detect the first row using "getViewIndex() == 0" so I can show my 'new' item. What I cannot figure out is either: 1. Is there a way to get the count of columns used in that displaytag table from within the decorator? Without it, I won't know how many table cells to create, making an incorrect table and possibly screwing up table layouts a little. OR 2. Is there a way to get the column names and/or titles from within that displaytag table? That way I could determine if a column was the "id" column (or "ID" title) and display a number '0' so the item is 'new' and the id is '0') ? Regards, David ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ displaytag-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-user

