Reputation: 4486
I am using 2 select tags. Their content can be modified inside the web page(via javascript). By default grails will take only the selected option (or all selected options if multiple is enabled) and pass it to the controller. How could I pass to the controller all the available rows from a select box ?
Upvotes: 0
Views: 284
Reputation: 171144
Maintain a secondary hidden list which has all elements selected. Then this list will get sent as well?
Or I guess you could maintain a hidden form element containing some sort of delimited list of names (but then you might get problems choosing a delimiter and escaping the values)
Upvotes: 1