I'm having a tough time creating a drop down menu for an array list of objects. The bottom example shows what I want to do. I was able to make a drop down populated with an array of objects. The top example won't behave the same way. The objects are structured almost identically.
none working example
<g:select name="module.id"
from="${moduleInstance}"
value="${moduleInstance?.id}"
optionKey="id"
optionValue="${{"${it.name}"}}"
noSelection="['':'Please select']"
required="" />
working example
<g:select name="division.id"
from="${divisionInstance}"
value="${personInstance?.division?.id}"
optionKey="id"
optionValue="${{"${it}"}}"
noSelection="['':'Please select']"
required="" />