First question is what are you trying to achieve here?

I assume your data is in an collection. Unless you go and rebuild the collection, resetting the id numbers, when you do a sort then what you ask for does not seem to be achievable.

On 2/21/2012 02:29, Edward King wrote:
I want to display table list,so I use displaytag,my code is follows:
<display:table name="datalist" requestURI="/demo.do" id="pl" pagesize="10"> <display:column property="id" title="ID" sortable="true" headerClass="sortable" />
<display:column property="name" sortable="true" headerClass="sortable" />
<display:column property="score" sortable="true" headerClass="sortable" />
</display:table>
When it run,it show follow result:
id   name  score
1   Jack     80
2   Kate     90
3   Mary     75
Then I click score column to sort,it shows:
id   name  score
3   Mary     75
1   Jack     80
2   Kate     90
Above result is not what I wanted,I hope id column keep unchange,like follows:
id   name  score
1   Mary     75
2   Jack     80
3   Kate     90
How to realize above function?  Thanks
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful.If you have received this communication in error,please immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d


_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to