Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4669515 By: ed_j_webb
Have you tried using a ColumnDecorator? Add the decorator attribute to the <display:column> : <display:column property="manufacturerName" decorator="my.decorator.ManufacturerName" sortable="true" /> and create a class like below : public class ManufacturerName implements ColumnDecorator { public String decorate(Object columnValue) { Manufacturer mnf = (Manufacturer)columnValue; if (mnf.getType().equals(DISTILLER) { return "<a href=\"/distiller?id=" + mnf.getId() + "\">" + mnf.getName() + "</a>"; } else { return "<a href=\"/blender?id=" + mnf.getId() + "\">" + mnf.getName() + "</a>"; } } } If I've understood the workings of the decorators correctly then the sort will be on the object's manufacturerName property but the display will be the hyperlinked name. Ed! ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=249318 ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user