DISPL-272 is most likely related. I'd try getting a snapshot of the portlet sub-project from source control and building the JAR. If that doesn't fix it could you post the URL for each link you click on from first display to where you see the problem?

-Eric Dalquist

ubo_rules wrote:
Hi everyone,
I am working on a display tag table in a JSR portlet (using Websphere portal server 5.1)

I am using displaytag and displaytag-portlet libs in snapshot 1.1. I got displaytag.properties setup as described in <http://displaytag.sourceforge.net/11/portlet.html>. I have the following code for a table with sorting and paging capabilities in a JSP file: <display:table list="<%=PersonCreator.createPersonList()%>" pagesize="2" sort="list"> <display:column property="firstName" title="First Name" sortable="true" headerClass="sortable"/> <display:column property="lastName" title="Last Name" sortable="true" headerClass="sortable"/>
     <display:column property="age" title="Age" sortable="true"/>
</display:table>
I thought I had it working. But, I soon realised that only the first page gets sorted. When I navigate to the second page I get unsorted data. For example if I have the following two pages before sorting Page 1 (before sorting)
~~~~~~
name | age
---------
aaa  | 0
yyy  | 0
Page 2 (before sorting)
~~~~~~
name | age
---------
bbb  | 0
zzz  | 0
I get the folloing after sorting by Name
Page 1 (after sorting)
~~~~~~~
name | age
---------
aaa  | 0
bbb  | 0
Page 2 (after sorting)
~~~~~~~
name | age
---------
bbb  | 0
zzz  | 0
Hence page 2 is not affected by the sort. When I tried the same thing outside a portal environment (in Tomcat), using the more or less the same JSP page everything worked as it should. I would appreciate any help, or links to any examples of displayTag-1.1 in portal pages. Thanks,
-Udesh
PS:I also noticed that the display-tag libs I am using didn't have DISPL-272 fixed (clicking next goes to last page). Although I doubt it, is there any chance that these are related?

------------------------------------------------------------------------
Yahoo! Autos <http://us.rd.yahoo.com/evt=38381/%20ylc=X3oDMTEzcGlrdGY5BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMWF1dG9z/*http://autos.yahoo.com/index.html%20>. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to