You can do this with (incorrectly) using closure to display the value (the so-called optionKey in Grails select taglib) of the selection options:
<g:select from="${books}" optionKey="${{ book -> "${book.id}\" data-author=\"${book.author.name}"}}" optionValue="title" name="selectedBook"/>
This will give parameters with the data-author attribute:
<option value="1" data-author="Johann Wolfgang von Goethe">Faust</option>
This works, at least in Grails 2.4.4 and Grails 3.1.5.
source share