I have a visualforce page that displays a list of records in a pageblocktable, with inputfields/picklists in each column to edit the records' fields.
What I would like to do is to have a column of inputcheckboxes where users can select a subset of records from the list. Then he can change a value of a field of one of the records in the subset, and that field of all the selected records get updated with that value. What is the best way to achieve this?
edit: I have seen the doc https://developer.salesforce.com/page/Wrapper_Class where a wrapper class is used to select the rows you want to process. But what I want to do is, for an example, from the table in the doc, if I select Adam, Pat and Rose, and then change the phone number of Adam to 213-425-1231, then Rose and Pat also should show the same phone number, 213-425-1231.