Hello, I am trying to display some data and I a want a column in a table to be sorted by a custom comparator, the code in my jsp page looks like this:
--- <div class="contentelement"><display:table name="workItems" export="true" requestURI="" decorator="de.mpicbg.db.endotrack.displaydecorators.WorkItemDecorator"> <display:setProperty name="basic.msg.empty_list" value="No WorkItems are available" /> {snip} <display:column property="code" sortable="true" titleKey="organisation.code" comparator="de.mpicbg.db.common.comparator.AlphaNumComparator" sortProperty="code" /> {snip} </display:table></div> --- The line above which is of interest is the one surrounded by {snip} - in this I am trying to use a custom comparator to alter the way a string value is sorted. I know the comparator works as I have a test case which runs. However the displaytag rendering seems to completely ignore this class when it executes - the data is unsorted and the log message shows that the compare method is never called. Does anyone have an example of using a custom comparator for sorting and/or tips of what I could be doing wrong? Thanks, in advance for your help. Cheers, Neil ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user