You need to ensure that the same datamodel is preserved in the subsequent request. The value
attribtue of the datatable must return exactly the same datamodel during form submit as it was during display. If the datamodel is not present or different, then chances are that the map of selected items won't be filled as you'd expect.
Update as per the comment: you also need to ensure that the table and the submit button are inside the same <h:form>
.
BalusC
2010-10-12 13:08:20