Define multiple implementations of a Service, and then execute all/specific implementation depending on the use-case.
Author: Aanchal Sikka
DS annotations – Configuration Factory
OSGi Configuration factory for multiple service configurations with single implementation.
AEM – Coral 2 multifield with acs-aem-commons JSON_STORE
In AEM component dialog, we often implement multifield which comprise of multiple widgets. Here we would cover multifield which would store values in json format using: Coral 3 multifield acs-aem-commons package javax.json.JsonObject API: Since, org.apache.sling.commons.json.JSONObject has been deprecated. STEP 1: Create a component. STEP 2: Create component dialog with multifield comprising of: textfield pathbrowser Add acs-commons-nested="JSON_STORE" … Continue reading AEM – Coral 2 multifield with acs-aem-commons JSON_STORE
Coral 3 – Granite UI components
There are few modifications to the way Granite UI components are configured for Coral 3 components. Example: radio, checkbox, multifield etc. Sharing snippets for frequently used Granite UI components (verified on AEM 6.3): Alert: Accordian: Checkbox: value: The submit value of the field when it is checked. uncheckedValue: The submit value of the field when it … Continue reading Coral 3 – Granite UI components