R
ritedo
Guest
Hi there,
I'm working on a view, that shows a hasmany-relationship (it's just an example):
domain Books.groovy
and some part of my view:
the output works, it looks like:
[Peter, Thomas, Susan, Jenny]
My question: is there any way just to show the names without the brackets?
Thank you in advance!
I'm working on a view, that shows a hasmany-relationship (it's just an example):
domain Books.groovy
Code:
package meinprojekt
class Books {
String title
static hasMany = [readers : Person]
static belongsTo = [author : Person]
static constraints = {
}
}
and some part of my view:
Code:
<td>${booksInstance.readers}</td>
the output works, it looks like:
[Peter, Thomas, Susan, Jenny]
My question: is there any way just to show the names without the brackets?
Thank you in advance!