improvement : could be done by direct binding to the form type, but for that, product ids have to be stored in a single hidden field (as we do for categories on product edit).