You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated documentation showing how this is possible would be useful. For example, with Locale objects, we might want to display the value of "Simplified Chinese (China)" (from locale.getDisplayName()) to the user while the value the application will store is zh-Hans-CN, which can construct a Locale object fairly easily (e.g., Locale.forLanguageTag(...)).
The text was updated successfully, but these errors were encountered:
The following code works great when the displayed value exactly maps to the stored value:
This is analogous to the following HTML:
HTML permits changing the displayed value and computed value independently:
Updated documentation showing how this is possible would be useful. For example, with
Locale
objects, we might want to display the value of "Simplified Chinese (China)" (fromlocale.getDisplayName()
) to the user while the value the application will store iszh-Hans-CN
, which can construct aLocale
object fairly easily (e.g.,Locale.forLanguageTag(...)
).The text was updated successfully, but these errors were encountered: