I want to retain the check boxes values which are previously checked on the first page, then user moves on the next pages and make additional selection.
Due to my current code, whenever user click Next
or Previous
link of display
tag, the track of previously selected check boxes is lost.
I checked the this demo, but I don't get the idea clearly. Actually I want to get the functionality of that example.
<display:table class="displayTable" id="allUserList"
name="allUserList" requestURI="viewList.action?" pagesize="15"
defaultsort="2" defaultorder="ascending" sort="list">
<display:column class="colID" paramId="sid" paramProperty="userId" >
<input type="checkbox" name="sid" id="sid" value="${allUserList.userId}" class="checkSID">
</display:column>
<display:column class="colUserName" property="fullname"
title="User Name" sortable="true" headerClass="sortable" maxLength="50" />
</display:table>
Now I can get the data of the checkboxes when goes to action on clicking the button. I want to let the user to make selection has much as he likes before he hits the button. So he can browse as many pages as he likes and makes selection.