Announcement Announcement Module
No announcement yet.
DataTable with checkboxes, command mapping Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • DataTable with checkboxes, command mapping


    in my web application I have a data table having in each row, a column with an input field and a column with a check box.
    I have to fill some rows having select them first and post back the data selected to my controller. My problem is, if I use a SimpleFormController I can only map a commandObject for a single row (using a form for each wor), so I can't select the rows I want and perform a single post to the server.

    How can I map the entire table with a single command object made by a class containing an attribute of type Vector<RowModel>, where RowModel is a class mapping a single row ?

    Do I have to use the initBinder with a custom editor ? If so, can you please supply a fragment of code explaining how to do it ? I'm new to Spring MVC

    Thans in advance.