vector
vector

Reputation: 7576

groovy/grails - domain object and tooltips

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.

Upvotes: 2

Views: 822

Answers (1)

Rob Hruska
Rob Hruska

Reputation: 120286

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"/>

Upvotes: 2

Related Questions