-
Type: Improvement
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 10.3
-
Component/s: Web UI
-
Release Notes Summary:Added a configuration service to allow Web UI properties definition with a namespace
-
Tags:
-
Sprint:nxGang Sprint 10.3.4, nxGang Sprint 10.3.5
-
Story Points:1
We need to be able to define configuration property that can be extended/appended.
We then want to be able to use namespaced properties to configure Web UI for:
- change date format globally (
ELEMENTS-736) - list supported locale (NXP-24964)
- narrow document fetched properties (
NXP-25512) - extend the list of json enrichers to be used when serializing a document (
NXP-25512)
Implementation details: properties can be marked as a list and if defined many times, values will be appended as comma separated values. You can override existing list property with the override attribute:
<property name="nuxeo.list.value" list="true">foo</property> <property name="nuxeo.list.value">bar</property> <!-- nuxeo.list.value is now "foo,bar" --> <property name="nuxeo.list.value" override="true">newValue</property> <!-- nuxeo.list.value is now "newValue" -->
We then put properties namespaced with org.nuxeo.web.ui into the Nuxeo.UI.config javascript namespace that Web UI (and even standalone elements) can access and use them.
- is related to
-
NXP-26038 Make ConfigurationService.getPropertiesAsJson() support nested properties
- Resolved
- is required by
-
ELEMENTS-736 Allow to customize date format in Web UI
- Resolved
-
NXP-24964 Allow user to set/change locale from profile
- Open
-
NXP-25512 WebUI: Allow to override/extend fetch properties and enrichers used to browse a document
- Resolved