Solved

how to maintain checked and unchecked results in pagination

Posted on 2006-11-27
13
470 Views
Last Modified: 2012-05-05
i want to implement paging;results will come from DB;IN EVERY PAGE  i should display  10 records;each record has checkbox;in the first page i checked 5 records and in the next page i checked another 5 records and i navigate between first page and second page the checked and unchecked results should be populated.how to proceed this??how to maintain checked and unchecked results.can i anybody provide pseudo code??
0
Comment
Question by:chaitu chaitu
13 Comments
 
LVL 29

Expert Comment

by:bloodredsun
ID: 18021420
Just store the results in the session and check for them when you output the checkbox.

A better way would be with Ajax but that may be a little advanced for this.
0
 
LVL 10

Expert Comment

by:jaggernat
ID: 18024347
keep the form-bean(which holds the field values including checkbox values) in session . that will maintain state of all your checkboxes though out the session while you switch pages.For table you can use Display table tag.
Nice n Easy.

http://displaytag.sourceforge.net/11/
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18054443
how to maintain checked and unchecked results;;
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 10

Expert Comment

by:jaggernat
ID: 18058197
if form-bean is in session, it will automatically maintain checked and unchecked results
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18066719
I have not this form-bean before;can u  provide some examples how to use this??
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18066725
used this form-bean before;;;
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18066789
we need to implement this kind of paging in so many places, so please tell me how to use form-bean and provide some examples.
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18066847
here main thing we shouild remember is  when  user checks 1 record or 2 , 3 records  first it should remove from the unchecked results and then it should add into checked results and vice-versa.
0
 
LVL 10

Expert Comment

by:jaggernat
ID: 18073293
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18128806
the example u priovide is not much elaborative?

i want this kind of functionality.

http://www.common-controls.com/cc2/listcontrol/sample107/userRightsBrowse.do
0
 
LVL 20

Author Comment

by:chaitu chaitu
ID: 18128809
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 18221860
PAQd, 500 points refunded.

DarthMod
CS Moderator
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Apache-Tomcat Single Sign On with NTLM/Kerberos on Windows 2008R2 3 232
library class in java 1 93
Help with LDAp login using jsp 6 116
servlet cookie finding by name 1 84
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question