Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Maintain table checkboxes state after sorting

 
Rajagopal Mani
Ranch Hand
Posts: 84
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic