In my grails template I call the remoteFunction (using jquery library) onload. To test if it worked, I wrote a println in the action. Turns out, it did work, but only one print statement went through instead of multiple print statements appearing in the console for the multiple items in my collection.