• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

How do we maintain the checkbox status while doing pagination in the display tag.

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a column of checkboxes in my display table and i need to maintain the status when i go to the next page in the display tag. In my case I need to store the rows (with the checkbox values) the user selected on each page while navgating on the table result by pagination. But it seems when we navigate through pagination links displaytag doesnot store the rows selected in the last page.
 
Satish Kumar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using display tag and want to get the status from the previous page available to the form bean when i am on the next or previous page. Is there any way to the same.
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sandeep,

Understood your problem.I had faced this problem earlier. I have solved this by taking "count" of the checkboxes.I have a unique value for each checkbox and when any check box is checked, that unique value will be carried forward to the next page and viceversa.

Regards,
Rama Krishna Ghanta
 
Satish Kumar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rama,
I did not get your point. Please tell me how are you doing it in some more detail. It can be helpful to me as well.
 
Satish Kumar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got it. Thanks.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rama/Sandeep,

Can you please give more details that you had used to maintain the checkbox status while doing pagination in the display tag?

Thanks,
Sreenivas
[ January 26, 2007: Message edited by: sreenivas konda ]
 
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!