给定一个具有以下属性的 grails 域对象
Integer displayOrder
Boolean visible
...将有关这些字段的元信息关联以在编辑 View 的工具提示上显示的最佳方法是什么?
谢谢一堆。
最佳答案
我可能只是在 message.properties 中添加一条消息,内容如下:
// messages.properties
myDomain.myField.tooltip = Enter an awesome field value for this field
然后在字段旁边的标记中适本地呈现它,或者任何地方:
<g:message code="myDomain.myField.tooltip"/>
关于grails - groovy/grails - 域对象和工具提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7777682/