aem-core-wcm-components icon indicating copy to clipboard operation
aem-core-wcm-components copied to clipboard

Form Option with Datasource throws error | getItems throws null while override

Open ckj0369 opened this issue 3 years ago • 2 comments

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

ckj0369 avatar Mar 25 '21 08:03 ckj0369