I have a list of Team objects that have an Integer seed property. I want to edit all the teams' seeds at once, in a single form. I'm sure that Grails supports indexed parameters, but I can't get it to work.

Here is what I have, and it works but I'm jumping through way too many hoops and there's gotta be a better way.

4 Answers
4

params is more than a regular Map, it's a GrailsParameterMap that automatically builds up sub-Map structures based on splitting the parameter names by '.'. You might take advantage of this by using the following gsp:

I'm wondering if anyone else is having troubles getting this to work. Using grails 1.3.4, instead of getting the expected sub-map I get what looks like a string representation of the sub-map. E.g, params.toString() "[filters.1.value:123, filters:["1":["value":"123"], "1.value":"123"], action:list, controller:user]"
–
bcowderyNov 30 '10 at 22:46

Yeah, I'm having all kinds of trouble with this in 2015. Seems grails now returns all parameter values as strings, which renders the 'maplist' string practically useless as bcowdery found years ago.
–
user2782001Mar 31 at 17:08