取得对表格 ID、值对象类、数据行的会话属性和组合框(如果有的话)的会话属性的引用。
Obtains the reference for the table ID, value object class, session attribute for data rows, and session attribute for combo box if one exists.
用户界面看起来没有任何不同 — 这些字段都将使用组合框来显示 — 但是类之间的关系稍微有些不同。
The user interface won't look any different — the fields will all be displayed using combo boxes — but the relationship between the classes is subtly but importantly different.
如果现在为Entry类生成视图的话,Grails会提供一个组合框,其中显示一个Author列表,如清单2所示。
If you generated the views now for the Entry class, Grails would provide a combo box that displays a list of Authors, as shown in Listing 2.
应用推荐