Search code examples
grails

How to configure the Fields plugin to filter the domain


I have an Author who has a Book.

class Author {
   String name
   Book book
}

The <f:all bean="Author"/> tag in the edit.gsp will create a html textbox with the Author.name and a html dropdown box with all the books in the html element.

How to setup the Fields plugin to only show just a sub-set of the books (not all the books)?


Solution

  • (from the question...)

    How to setup the Fields plugin to only show just a sub-set of the books (not all the books)?

    (from a comment...)

    So, I want the Fields plugin to fill out the book dropdown with all the books that are published by Penguin only.

    The fields plugin does not provide a mechanism to do that filtering.