The following comment has been added to this issue: Author: fabrizio giustina Created: Thu, 30 Sep 2004 6:50 AM Body: testcase works as expected in Tomcat 4 under servletunit. But note that the jsp submitted is not valid: columns have 2 headerClass attributes, which is not permitted:
<display:column headerClass="wontSort" property="id" title="ID" sortable="true" headerClass="sortable"/> should be: <display:column headerClass="wontSort sortable" property="id" title="ID" sortable="true" /> or, if you configure the sortable class to be automatically added in displaytag.properties: <display:column headerClass="wontSort" property="id" title="ID" sortable="true" /> test has been done with the fixed (one headerClass only) sample. Please check with Resin with a correct jsp. --------------------------------------------------------------------- View this comment: http://jira.codehaus.org/browse/DISPL-17?page=comments#action_24763 --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/DISPL-17 Here is an overview of the issue: --------------------------------------------------------------------- Key: DISPL-17 Summary: Sorting doesn't work correctly for columns with "headerClass" attribute Type: Bug Status: Unassigned Priority: Minor Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: DisplayTag Components: Container Compability Fix Fors: 1.0 RC2 Versions: 1.0 RC1 Assignee: Reporter: fabrizio giustina Created: Sat, 25 Sep 2004 5:05 AM Updated: Thu, 30 Sep 2004 6:50 AM Description: ==== imported from sf tracker id 1017130 submitted by innanill http://sourceforge.net/tracker/index.php?func=detail&group_id=73068&atid=536613&aid=1017130 ==== Using displaytags 1 rc1, and Resin 2.1.11 and struts. With the following, sorting does not work correctly: <display:table id="row" class="display-tags-Data" width="780" align="center" hspace=0 vspace=0 name="sessionScope.application.qualifiedLoanOptionsSort ed" defaultsort="2" defaultorder="ascending"> <display:column align="center" headerClass="DataHeader" class="edit-labels" property="orderNum" title="Option ID" sortable="true" /> <display:column align="center" headerClass="DataHeader" class="edit-labels-3" sortable="true" title="Product Name" > <bean:write name="row" property="productName"/> </display:column> <display:column align="right" headerClass="DataHeader" class="edit-labels" sortable="true" title="Loan Amount" > <bean:write name="row" property="loanAmount"/> </display:column> </display:table> The two columns that have <bean:write> will sort together. That is, if I click on the "Product Name" header to sort, both the "Product Name" and "Loan Amount" columns will appear sorted (arrow_up or down as needed, and bright orange color). Any ideas? Thanks! --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel