Ok have got the solution.
I did everything right except my displaytag in my JSP page.
This works:
<displaytag:table id="nameslist" name="requestScope.names" class="sr"
requestURI="" pagesize="50">
<displaytag:column decorator="myproject.NamesDecorator">
<%=((String)pageContext.getAttribute("nameslist"))%>
</displaytag:column>
<displaytag:setProperty name="paging.banner.placement" value="bottom"/>
<displaytag:setProperty name="basic.empty.showtable" value="true"/>
</displaytag:table>
My NamesDecorator class looks like:
package myproject.decorators;
import javax.servlet.jsp.PageContext;
import org.displaytag.decorator.DisplaytagColumnDecorator;
import org.displaytag.properties.MediaTypeEnum;
public class NamesDecorator implements DisplaytagColumnDecorator {
public String decorate(final Object columnValue, final PageContext
pageContext, final MediaTypeEnum media) {
String name = (String) columnValue;
return "<a href=\"mylink\">" + name + "</a>";
}
}
Thanks to my workmate for working this out!!!
Hope this helps someone else out there ...
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user