Mody, Bhumit M. escribió: > Hi Peter, Roberto > > I think the correct way to use decorator is as follows: > > <display:table name="resultList" id="myTable" > decorator="com.abc.xyz.MailDecorator"> > <display:column property="name" title="Name"/> > </display:table> >
Actually i use multiple decorator (by table and by column): <display:table name="resultList" id="myTable" decorator="org.displaytag.decorator.MultilevelTotalTableDecorator" > <display:column property="name" title="Name" decorator="com.abc.xyz.TestDecorator"/> </display:table> > > public class MailDecoratorextends TableDecorator{ > > //displaytag comes to this decorator class first and see if you > have overwritten any of the properties //getters, if yes, get value > returned from here else goes and get it from your resultList > public String getName() > { > AddressBean addr = (AddressBean)getCurrentRowObject(); > String name = addr.getName(); > //addr is your current row, do whatever processing you > want to do with name and return it > //the returned string would be rendered in your > displaytag table > return name; > } > > } > > Hope this helps, > Bhumit Mody [...] this case it's not a solution for me. regards. -- Roberto Leiva M. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user