Hi All,
I read over and over the section of the documentation about External
External Paging and Sorting and I thought I followed
their suggestions tot he letter.
*http://displaytag.sourceforge.net/11/tut_externalSortAndPage.html*
Here is what I have:
*JSP*:
<display:table name="lix" sort="external" defaultsort="4" pagesize="25"
id="currItem" partialList="true"
size="totalSize" keepStatus="true" form="manageLixForm"
class="alternaterow">
/ <display:column property="price" title="Price" sortable="true"
sortName="price" headerClass="sortable"
format="{0,number,$0.00}" maxLength="15" style="white-space:
nowrap;" />/
</display:table>
*Java/Controller*:
encoder = new ParamEncoder("currItem");
String orderDir =
request.getParameter(encoder.encodeParameterName(TableTagParameters.PARAMETER_ORDER));
String page =
request.getParameter((encoder.encodeParameterName(TableTagParameters.PARAMETER_PAGE)));
if (page != null)
start = (Integer.parseInt(page) - 1) * pageSize; <--
(pageSize=25)
*My Problems*:
1. The variable start always 0 when I try to sort the column no
matter what page I am at.
2. The variable orderDir is always "2" which is DESC.
If I get correct values fore these two variables, my SQL code would sort
the requested page-size list correctly.
What am I missing or did wrong. Thanks for your help.
Ibrahim
begin:vcard
fn:Ibrahim Mustafa
n:Mustafa;Ibrahim
email;internet:[email protected]
tel;work:415-971-1400
tel;home:415-913-7464
x-mozilla-html:TRUE
version:2.1
end:vcard
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user