Menu

Maintaining status of checkbox during paginat

Help
chandra
2005-07-19
2012-10-09
  • chandra

    chandra - 2005-07-19

    Hi,
    I am using a display tag for pagination in my JSP page. I have a checkbox field as one of the columns. I am using displayTagWrapper class to display my checkboxes. I have a submit button in a page which will save checkbox status into the database. I also have pagination and sorting in the page.

    The problem i have is, i will loose the status of the checkbox when i go to second page. If i select some of the checkboxes in page 1 and go to page 2 to select some more and if i come back, i loose all the selected checkboxes in page 1.

    Is there a way where i could save my check boxes in session and its checked while i browse across pages and gets submitted all at once.

    Any help is appreciated

    Thanks

     
    • thierryj8

      thierryj8 - 2006-09-16

      I have the same problem using the displaytag lib with a column with checkboxes. Each checkbox has a distints name.

      When I submit the form, the checkbox values are passed as parameters.

      When I use the controls of the taglib, these values do not go through as parameters.

      How can I get the checked items to be passed as parameters when I click on the taglib link controls First-Prev-Next-Last

      Thank you.

       

Log in to post a comment.