For concatenation I seemed to have to use el2's concat function...
For equals you can't use == , need to use el's 'eq' or 'ne'
visible="@load(productGroup.owner.id eq user.id)"
public void writeToFile(def directory, def fileName, def extension, def infoList) {
new File("$directory/$fileName$extension").withWriter { out ->
infoList.each {
out.println it
}
}
}