I changed the logic to resource (updated the code)but still it is failed. I see weird issue, it worked once and then it keep on failing. Is it because of resource file that we are loading ?
yes, here is my FeatureListModel class @Model(adaptables = Resource.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL, adapters = FeatureListModel .class)public class FeatureListModel {..}
I am trying to create a JUNIT for my sling model class. I am following - https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-wknd-tutorial-develop/project-archetype/unit-testing.html?lang=en. As per this doc I am using AemContext to load the json file but I get Null when...
I have a component and it has 7 dialog properties and 5 fields are straightforward fields and there is no business logic, 2 fields needs some manipulation. It is return the same way what is authored. I have two options Case 1 : All 7 fields are simple and return simple string.Method 1 - Use ${pro...
I am trying deploy code from local to adobe runtime using "aio app run" but I get below error, Module not found: Error: Can't resolve '@adobe/aio-sdk & Module not found: Error: Can't resolve 'openwhisk' root@mario # aio app run
How you use /aio-cli provides us with important data that we can use...
Thank you @arunpatidar . I looked at /libs/cq/Page but it does not have any logic. proxy.jsp is forwarding or including requests to another resource within the AEM environment. There is no supertype for this as it is a folder. any other location you could think of ?
I am aware about how to create a model exporter class. I am using below code snippet. I just want to if I can see source code for OOTB page model exporter ( http://localhost:4502/content/we-retail/language-masters/en.model.json ) Is this open source to check ? @Model(adaptables = SlingHttpServletRe...