Re: [displaytag-user] DisplaytagColumnDecorator returns wrong row object

2011-03-31 Thread Paul Cooper
Roger, I don't use the column decorator, I use the TableDecorator, which has that method. You put the decorator on the whole table, and create methods in the decorator to manipulate individual columns. If you reference a property that is not a method on the object referenced in the table, Displ

Re: [displaytag-user] DisplaytagColumnDecorator returns wrong row object

2011-03-31 Thread RogerV
Paul Cooper-2 wrote: > > All decorators have a getCurrentRowObject() method that will return the > object that makes up each row. Cast the result of the method to whatever > Class it really is, and then call methods on it. > DisplaytagColumnDecorator is only an interface. Which concrete decor

Re: [displaytag-user] DisplaytagColumnDecorator returns wrong row object

2011-03-31 Thread Paul Cooper
All decorators have a getCurrentRowObject() method that will return the object that makes up each row. Cast the result of the method to whatever Class it really is, and then call methods on it. -Original Message- From: RogerV [mailto:roger.var...@googlemail.com] Sent: Thursday, March 31

Re: [displaytag-user] DisplaytagColumnDecorator returns wrong row object

2011-03-31 Thread RogerV
Sorry, The interface I was using to post through Nabble removed a chunk of my message - I'll try again I'm using Struts 2.2.1 with DisplayTag 1.2. I've got a simple jsp page that contains - and my decorator is as follows; public class EditOrDeleteDecorator impleme