Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Tiger Sprint 198, Tiger Sprint 199
Description
Component properties of type DropDownList can be populated by using a ValueListProvider. The values come from a resource bundle, that can have multiple locales. When retrieving a display value from a ValueListProvider the preferredLocale is used. It turns out that this is not the locale that the user has chosen when logging in to the CMS.
The code to be changed is in org.hippoecm.hst.pagecomposer.jaxrs.model.ParametersInfoProcessor#createPropertyMap. (line 237).
The user's locale is passed to HST in the request from the channel manager to retrieve the component variant. This locale should also be used to retrieve the display values from the ValueListProvider.
org.hippoecm.hst.pagecomposer.jaxrs.services.ContainerItemComponentResource#getVariant