opensubscriber
   Find in this group all groups
 
Unknown more information…

d : displaytag-user@lists.sourceforge.net 21 February 2012 • 3:29PM -0500

[displaytag-user] How to sort sequence number
by Edward King

REPLY TO AUTHOR
 
REPLY TO GROUP




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.
---------------------------------------------------------------------------------------------------

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.