File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Checkbox selection retention across multiple pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Checkbox selection retention across multiple pages" Watch "Checkbox selection retention across multiple pages" New topic
Author

Checkbox selection retention across multiple pages

siva saran
Greenhorn

Joined: Mar 11, 2007
Posts: 17
Hi all,

I have a popup with pagination.IN the popup i can display 20 records each with a checkbox.I can select 5 records from here , 5 from next page and 5 more other page .So the total must be 15.Similarly I can remove and the size should change dynamically.Can I get a sample solution.I did a code but it was bulky and slow.Also there were problems while removing the records by de-selecting the checkbox.Any solution which is faster and more dynamic is welcome..
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
[edit]Nevermind, misunderstood the question.[/edit]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
How are the multiple pages being fetched?

Eric
siva saran
Greenhorn

Joined: Mar 11, 2007
Posts: 17
Eric Pascarello wrote:How are the multiple pages being fetched?

Eric


Well we are making a call to the database to fetch the records whenever the next>> is clicked.Then we cache the records in a session so that in case the user uses the prev<< we can reload from the session instead of making a call to the database. We use the last record in the page a scrollkey to our DB to fetch the next set of records.Hope this helps
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
When the page is posted back, you need to store what checkboxes were checked and hold that in session too.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Checkbox selection retention across multiple pages
 
Similar Threads
reload opner window javascript
Printing of records
urgent urgent .....How do i do paging in JSP ?????
JSF rendered javascript issue
select records from multiple pages