Hi, for a field of a SQLDataSource that has a <valueMap> in its definition, is there a supported way to retrieve the "displayValue" server-side (i.e., in a DMI)?
Announcement
Collapse
No announcement yet.
X
-
Hi Blama, thanks, field.getMapProperty("valueMap") works to retrieve the valueMap.
Then it seems that I'm able to get the key of the <fmt:message> tag using a LocaleMessage class which isn't documented.
is it safe to do this, Isomorphic ?
Code:Object localeMessage = valueMap.get(key.toString()); String displayValue = localeMessage instanceof String ? (String) localeMessage : ((LocaleMessage) localeMessage).getKey();
Comment
Comment