简体   繁体   中英

Grails. Select tag

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 ?

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM