Solved

how to maintain checked and unchecked results in pagination

Posted on 2006-11-27
13
471 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet init param and contect param 3 67
excpetion with multiple catch 11 132
struts exact match support 3 59
junit example issue 2 23
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Read our guide on how to survive being on-call.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

735 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