0
我需要的一切工作正常,直到我面臨以下問題。 我正在使用displayTag來使用排序和分頁。但問題是,當我在第四頁上,例如,點擊任何列進行排序,然後控件默認返回第1頁。它應該只有第4頁(理想情況下)。以下是我寫的代碼。DisplayTag分頁排序後不保留
display.jsp
<div class="tableDisp">
<display:table id="person" cellspacing="1" cellpadding="1" keepStatus="true" class="tableDisplay" excludedParams="*" requestURI="/getAllMember.htm" name="${command}" sort="list" pagesize="5" >
<display:column title="Name" sortable="true" sortProperty="personName" >${person.personName}</display:column>
<display:column title="DOB" sortable="true" sortProperty="dob" >${person.dob}</display:column>
<display:column title="phone Number" sortable="true" sortProperty="phoneNo" >${person.phoneNo}</display:column>
<display:column title="profile creation Date" sortable="true" sortProperty="profilecreationDate" >${person.profilecreationDate}</display:column>
<display:column title="Gender" sortable="true" sortProperty="gender" >${person.gender}</display:column>
</display:table>
</div>
Contrller.java
List<Person> persons = searchService.getAllPerson();
ModelAndView mav = new ModelAndView("memberPage");
mav.addObject("command",persons);
return mav;
我使用displayTag-1.2.jar。請幫忙。 謝謝
那麼說的話是這個要求是不可能的..? – 2014-10-23 09:08:04