Solved

how to maintain checked and unchecked results in pagination

Posted on 2006-11-27
13
467 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exception creating bean of class 5 167
password protect pdf 11 74
parse example 13 93
squirrelPlay java challenge 40 157
When we talk about DevOps toolchains, I sometimes wonder how many people really get what we’re talking about. I don’t know if it’s just semantics or tone or something else, but sometimes I think it just sounds like buzzword sausage. So it’s always …
Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now