aem-core-wcm-components
aem-core-wcm-components copied to clipboard
Form Option with Datasource throws error | getItems throws null while override
Hi Team,
I'm trying to overlay form option.java to get the data in json format using exporter framework. However, everything works as expected with the override and to get items data I've used:
@Override
public List<OptionItem> getItems() {
return superSelf.getItems();
}
This method throws error when option is selected from Datasource ERROR [OptionsImpl.java] Failed to include the datasource at weretail/components/form/options/datasource/countriesdatasource org.apache.sling.api.request.RecursionTooDeepException Same works fine with Local and List.
Also raised here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/form-option-datasource-error-in-getitems/qaq-p/401455#M87221