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. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

Reply via email to