2
votes

Given a grails domain object with properties like

Integer displayOrder
Boolean visible

... what would be the best way to associate meta information about these fields for display on tooltips in edit view?

Thanks a bunch.

1
What sort of meta information? - tim_yates
... short description about the field. - vector

1 Answers

2
votes

I would probably just add a message to message.properties with the content:

// messages.properties
myDomain.myField.tooltip = Enter an awesome field value for this field

And then render it appropriately in the markup alongside the field, or wherever:

<g:message code="myDomain.myField.tooltip"/>