[英]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. edit.gsp 中的
<f:all bean="Author"/>
标记将创建一个带有 Author.name 的 html 文本框和一个带有 ZFC35FDC70D5FC69D2536883A822C 元素中所有书籍的 html 下拉框。
How to setup the Fields plugin to only show just a sub-set of the books (not all the books)?如何将 Fields 插件设置为仅显示书籍的子集(不是所有书籍)?
(from the question...) (从问题...)
How to setup the Fields plugin to only show just a sub-set of the books (not all the books)?
如何将 Fields 插件设置为仅显示书籍的子集(不是所有书籍)?
(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.
因此,我希望 Fields 插件能够在图书下拉列表中填写仅由 Penguin 出版的所有图书。
The fields plugin does not provide a mechanism to do that filtering.字段插件不提供进行过滤的机制。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.