• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maintain table checkboxes state after sorting

 
Ranch Hand
Posts: 84
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Table with say 50 rows & 8 columns(3 sortable) where as each row has unique id which assigned to each checkbox. When some checkboxes selected say '5' & perform sorting, need to maintain a selected checkboxes state.

[1] Data is acquired from model layer in concern action class.
[2] Populating bean object with 50 row's data <note bean class is having property name(s) for each column(s)>
[3] Please note bean object does not have any property for checkbox column.
[4] Bean object(s) is added to ArrayList in action & set in request scope.
[5] Corresponding Jsp iterates the bean object(s) which set in request scope & display it (including checkbox).

In this case, how i can maintain the state of checkboxes after sorting? I am not sure whether the above developed flow is correct or not since am not using the form properly. However, I have searched in this regard in java ranch forum & net. Still i didnt get proper solution. can anybody share a better example for this which will help lots of people.

Thanks
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic