Looks like the action performed for "SAVE" button click is done everytime
the sort link is clicked. If you use the request param for performing the
save action, then add it to the exclued param list of displaytag.
-ct

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Sumitha
Baskaran
Sent: Friday, October 21, 2005 12:05 AM
To: [email protected]
Subject: [displaytag-user] Question on sorting of columns using the
display tag


Hello!

I have a comments list page with 3 columns:

<display:table name="fileCommentResultsList"
requestURI="" scope="session" sort="list"
pagesize="10" width="100%" cellpadding="0"
cellspacing="0" border="0">

              <display:column align="left"
property="createdUserName" title="Author's Name"
sortable="true" headerClass="sortable" width="15%" />
              <display:column align="left"
property="createdDate" title="Created Date|Time"
sortable="true" headerClass="sortable" width="15%" />
              <display:column align="left" property="comment"
title="Comments" sortable="true"
headerClass="sortable" width="70%" />

</display:table>

When the user visits the page for the first time, the
sorting works fine. This screen has a "SAVE" button.
The user can add a new comment and save it. After
saving the new comment, when the user returns to this
page, and attempts to sort on any column, the just
added new comment gets added once more. Every time the
user attempts to sort, the last added comment gets
added to the list again.
Why does this happen?
How can I prevent this from happening?

Thanks in advance!
Sumitha





__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to