I have a form named X with many records. The user selects a couple of records on this form and clicks a link that opens a dialog box. I need to pass the id of the records that were selected to this dialog box. I have a form with a comment field and save button on the dialog box. When the user enters a comment on the dialog box and clicks Save, I want to submit the id of the records that were selected and the comment to the controller which will apply the comment to all the records selected and save it to the database and re-render form X.
How do I do this in grails? I tried using the modal box plugin, but I can only pass an id to it as it creates a link.
I would appreciate any help you can give me.
Thanks,
eas