[ http://jira.codehaus.org/browse/DISPL-17?page=comments#action_42500 ] 

GongGunDoo commented on DISPL-17:
---------------------------------

Hi. Everyone.

Please try the following property on display table.
The sorting seems to count on this property.

sort="list"  
( default value is sort="page" )

e.g.)

<display:table id="disptab" name="requestScope.results.rows" 
decorator="org.displaytag.sample.Wrapper" 
                  pagesize="20" export="true" class="mars" sort="list">

                <display:column  title="No">
                                <%=pageContext.getAttribute("disptab_rowNum")%>
                </display:column>
                
                <display:column property="cancel_date"  sortable="true"  
title="Cance Date"/>

                <display:setProperty name="basic.empty.showtable" value="true" 
/>

                <display:setProperty name="export.amount" value="list" />
                <display:setProperty name="export.csv" value="false" />
                <display:setProperty name="export.xml" value="false" />
                <display:setProperty name="export.excel.filename" 
value="MailAddrList.xls"/>  
                <display:setProperty name="export.csv.filename" 
value="MailAddrList.csv"/> 
                <display:setProperty name="export.excel.include_header" 
value="true" />


</display:table>



> Sorting doesn't work correctly for columns with "headerClass" attribute
> -----------------------------------------------------------------------
>
>          Key: DISPL-17
>          URL: http://jira.codehaus.org/browse/DISPL-17
>      Project: DisplayTag
>         Type: Bug
>   Components: Container Compability
>     Versions: 1.0 RC1
>     Reporter: fabrizio giustina
>     Assignee: fabrizio giustina
>     Priority: Minor
>      Fix For: 1.0 RC2
>  Attachments: displaytags_bug_files.zip
>
>
> ====
> 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!

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to