Hi I'm using Struts 2.2.1 with DisplayTag 1.2. I've got a simple jsp page that contains -
<display:table name="${functions}" uid="row" pagesize="20" requestURI=""> <display:setProperty name="paging.banner.placement" value="bottom" /> <display:column property="description"/> <display:column title="" decorator="com.myApp.genesis.admin.tableDecorators.EditOrDeleteDecorator"/> </display:table> and my decorator is as follows; public class EditOrDeleteDecorator implements DisplaytagColumnDecorator { @Override public Object decorate(Object arg0, PageContext context, MediaTypeEnum arg2) throws DecoratorException { IdsFunction function = (IdsFunction) context.getAttribute("row"); return " \"edit-function?id=" Edit | " + " \"delete-function?id=" Delete | " + " \"list-service-definitions?id=" Definitions "; } } Debugging the decorator shows that context.getAttribute("row") does indeed return an IdsFunction object, but on each iteration it's always the same IdsFunction object and it's the last IdsFunction instance in the list. I was expecting to be handed each row object in turn. The rendered JSP displays the row objects correctly, with each member of the list displayed but obviously the URL's all point to the last member in the list. What am I missing? Regards -- View this message in context: http://old.nabble.com/DisplaytagColumnDecorator-returns-wrong-row-object-tp31275210p31275210.html Sent from the DisplayTag - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user