Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Form Option Datasource error in getItems()

Avatar

Avatar
Validate 1
Level 1
chandeshj240320
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
chandeshj240320
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
chandeshj240320
Level 1

25-03-2021

Hi all,

 

I'm writing sling model with exporter framework to print JSON formatted output.

While rest all components work fine, there is some issue with form option component extended from core/wcm/components/form/options/v2/options.

I can get the output in Items when using the component with local and list.

But whenever using Datasource with correct datasource value then t throws following error:

 

Failed to include the datasource at weretail/components/form/options/datasource/countriesdatasource
org.apache.sling.api.request.RecursionTooDeepException

 

However same datasource works with normal rendering: http://localhost:4502/content/we-retail/us/en/user/checkout.html?wcmmode=disabled

 

Current code is as shown below, here superSelf.getItems() returns empty in case of datasource while in other case it works fine:


@Override
public List<OptionItem> getItems() {
return superSelf.getItems();
}

 

Any help in this would be a great relief.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

706 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

564 likes

Total Posts

706 posts

Correct Reply

234 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

25-03-2021

Hi @chandeshj240320,

Can you confirm if you are overriding the options component dialog as well or just the custom implementation for Options Interface. 

Answers (0)